]> granicus.if.org Git - php/commitdiff
Fixed the common misspelling of the word occurred (occured -> occurred)
authorMarc Easen <marc@easen.co.uk>
Mon, 11 Jun 2012 20:47:40 +0000 (21:47 +0100)
committerStanislav Malyshev <stas@php.net>
Sat, 30 Jun 2012 23:54:03 +0000 (16:54 -0700)
34 files changed:
Zend/tests/bug39018.phpt
Zend/tests/offset_string.phpt
Zend/zend_compile.c
Zend/zend_execute.c
ext/dom/xpath.c
ext/imap/tests/imap_errors_basic.phpt
ext/intl/common/common_error.c
ext/intl/doc/collator_api.php
ext/intl/doc/common_api.php
ext/intl/doc/datefmt_api.php
ext/intl/doc/formatter_api.php
ext/intl/doc/msgfmt_api.php
ext/intl/intl_convert.c
ext/intl/normalizer/normalizer_normalize.c
ext/intl/tests/formatter_get_error.phpt
ext/mysqli/mysqli.c
ext/mysqli/tests/mysqli_stmt_affected_rows.phpt
ext/mysqlnd/mysqlnd_loaddata.c
ext/pcntl/pcntl.c
ext/pcntl/tests/pcntl_exec_3.phpt
ext/pdo_mysql/mysql_statement.c
ext/simplexml/tests/bug48601.phpt
ext/sockets/tests/socket_sentto_recvfrom_ipv4_udp.phpt
ext/sockets/tests/socket_sentto_recvfrom_ipv6_udp.phpt
ext/sockets/tests/socket_sentto_recvfrom_unix.phpt
ext/spl/tests/bug52238.phpt
ext/sqlite3/libsqlite/sqlite3.c
ext/sqlite3/sqlite3.c
ext/standard/basic_functions.c
ext/standard/tests/file/umask_basic.phpt
ext/tidy/examples/cleanhtml.php
ext/tidy/examples/cleanhtml5.php
ext/tidy/tidy.c
ext/xsl/xsltprocessor.c

index e1968ad0416260c1e2571b4b5fdfe21d7c976f05..32566ba864636554dd139457772c8309f156c1fe 100644 (file)
@@ -62,17 +62,17 @@ print "\nDone\n";
 
 ?>
 --EXPECTF--
-Notice: String offset cast occured in %s on line %d
+Notice: String offset cast occurred in %s on line %d
 
 Notice: Uninitialized string offset: 0 in %s on line %d
 
 Notice: Uninitialized string offset: 0 in %s on line %d
 
-Notice: String offset cast occured in %s on line %d
+Notice: String offset cast occurred in %s on line %d
 
 Notice: Uninitialized string offset: %i in %s on line %d
 
-Notice: String offset cast occured in %s on line %d
+Notice: String offset cast occurred in %s on line %d
 
 Notice: Uninitialized string offset: %i in %s on line %d
 
@@ -88,16 +88,16 @@ Notice: Uninitialized string offset: 4 in %s on line %d
 
 Notice: Uninitialized string offset: 4 in %s on line %d
 
-Notice: String offset cast occured in %s on line %d
+Notice: String offset cast occurred in %s on line %d
 
 Notice: Uninitialized string offset: 12 in %s on line %d
 
-Notice: String offset cast occured in %s on line %d
+Notice: String offset cast occurred in %s on line %d
 
 Notice: Uninitialized string offset: 12 in %s on line %d
 
-Notice: String offset cast occured in %s on line %d
+Notice: String offset cast occurred in %s on line %d
 
-Notice: String offset cast occured in %s on line %d
+Notice: String offset cast occurred in %s on line %d
 b
 Done
index 34604d6347a483dc568f7e5ccdb9fea913a9a97b..f7cb81bb20d35df3050cf49d15deb2da604c2867 100644 (file)
@@ -30,10 +30,10 @@ echo "Done\n";
 --EXPECTF--
 string(1) "i"
 
-Notice: String offset cast occured in %s on line %d
+Notice: String offset cast occurred in %s on line %d
 string(1) "S"
 
-Notice: String offset cast occured in %s on line %d
+Notice: String offset cast occurred in %s on line %d
 string(1) "S"
 
 Warning: Illegal string offset 'run away' in %s on line %d
@@ -46,10 +46,10 @@ string(1) "o"
 Notice: A non well formed numeric value encountered in %s on line %d
 string(1) "r"
 
-Notice: String offset cast occured in %s on line %d
+Notice: String offset cast occurred in %s on line %d
 string(1) "i"
 
-Notice: String offset cast occured in %s on line %d
+Notice: String offset cast occurred in %s on line %d
 string(1) "S"
 
 Warning: Illegal offset type in %s on line %d
index cca7c1976e9a6c16daa8dfb1796d9ce6d8bc3250..841e1b931657c250b8a836288542bb716a49ec0a 100644 (file)
@@ -3712,7 +3712,7 @@ static int zend_traits_merge_functions(zend_function *fn TSRMLS_DC, int num_args
        } else {
                /* Add it to result function table */
                if (zend_hash_quick_add(resulting_table, hash_key->arKey, hash_key->nKeyLength, hash_key->h, fn, sizeof(zend_function), NULL)==FAILURE) {
-                       zend_error(E_COMPILE_ERROR, "Trait method %s has not been applied, because failure occured during updating resulting trait method table", fn->common.function_name);
+                       zend_error(E_COMPILE_ERROR, "Trait method %s has not been applied, because failure occurred during updating resulting trait method table", fn->common.function_name);
                }
        }
 
@@ -3829,7 +3829,7 @@ static int zend_traits_merge_functions_to_class(zend_function *fn TSRMLS_DC, int
                function_add_ref(&fn_copy);
 
                if (zend_hash_quick_update(&ce->function_table, hash_key->arKey, hash_key->nKeyLength, hash_key->h, &fn_copy, sizeof(zend_function), (void**)&fn_copy_p)==FAILURE) {
-                       zend_error(E_COMPILE_ERROR, "Trait method %s has not been applied, because failure occured during updating class method table", hash_key->arKey);
+                       zend_error(E_COMPILE_ERROR, "Trait method %s has not been applied, because failure occurred during updating class method table", hash_key->arKey);
                }
    
                zend_add_magic_methods(ce, hash_key->arKey, hash_key->nKeyLength, fn_copy_p TSRMLS_CC);
index 205531fd28e53c779bb3531288f13f64ea1035e2..fbc73258c7090331b50b4d77580f96784d8d548b 100644 (file)
@@ -1161,7 +1161,7 @@ convert_to_array:
                                                case IS_DOUBLE:
                                                case IS_NULL:
                                                case IS_BOOL:
-                                                       zend_error(E_NOTICE, "String offset cast occured");
+                                                       zend_error(E_NOTICE, "String offset cast occurred");
                                                        break;
                                                default:
                                                        zend_error(E_WARNING, "Illegal offset type");
@@ -1284,7 +1284,7 @@ static void zend_fetch_dimension_address_read(temp_variable *result, zval **cont
                                                case IS_NULL:
                                                case IS_BOOL:
                                                        if (type != BP_VAR_IS) {
-                                                               zend_error(E_NOTICE, "String offset cast occured");
+                                                               zend_error(E_NOTICE, "String offset cast occurred");
                                                        }
                                                        break;
                                                default:
index dd98511e9caea0b0f96f9a764c872fe6e5fada7e..70e7aff6900e486f673040083a8c988cfea5d642 100644 (file)
@@ -216,7 +216,7 @@ static void dom_xpath_ext_function_php(xmlXPathParserContextPtr ctxt, int nargs,
                        if (Z_TYPE(handler) == IS_STRING) {
                                php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to call handler %s()", Z_STRVAL_P(&handler));
                        }
-               /* retval is == NULL, when an exception occured, don't report anything, because PHP itself will handle that */
+               /* retval is == NULL, when an exception occurred, don't report anything, because PHP itself will handle that */
                } else if (retval == NULL) {
                } else {
                        if (retval->type == IS_OBJECT && instanceof_function( Z_OBJCE_P(retval), dom_node_class_entry TSRMLS_CC)) {
index 9d2ca30ecea5c5841ced3ee1974717d76b478099..91be3286aaeb87de2823e6e7037a373a8911069b 100644 (file)
@@ -7,7 +7,7 @@ require_once(dirname(__FILE__).'/skipif.inc');
 --FILE--
 <?php
 /* Prototype  : array imap_errors  ( void  )
- * Description: Returns all of the IMAP errors that have occured.
+ * Description: Returns all of the IMAP errors that have occurred.
  * Source code: ext/imap/php_imap.c
  */
 
index 24ded0c9fb6527272834e9d28e171d0a42945717..a0ee7c145ffd54b6fa75395b9ba3b3b1fad4f58b 100755 (executable)
@@ -24,7 +24,7 @@
 #include "common_error.h"
 
 /* {{{ proto int intl_get_error_code()
- * Get code of the last occured error.
+ * Get code of the last occurred error.
  */
 PHP_FUNCTION( intl_get_error_code )
 {
@@ -33,7 +33,7 @@ PHP_FUNCTION( intl_get_error_code )
 /* }}} */
 
 /* {{{ proto string intl_get_error_message()
- * Get text description of the last occured error.
+ * Get text description of the last occurred error.
  */
 PHP_FUNCTION( intl_get_error_message )
 {
index 5428783750472a68091312a64925a9f437fd5c52..ef7250243bfdd951b22516ee27a06dbd07fd2961 100755 (executable)
@@ -116,7 +116,7 @@ class Collator {
     /**
      * Return error text for the last ICU operation.
      *
-     * @return string Description of an error occured in the last
+     * @return string Description of an error occurred in the last
      *                Collator method call.
      */
     public function getErrorMessage() {}
@@ -236,7 +236,7 @@ class Collator {
      *
      * @return string        Real locale name from which the
      *                       collation data comes. If the collator
-     *                       was instantiated from rules or an error occured,
+     *                       was instantiated from rules or an error occurred,
      *                       returns false.
      */
     public function getLocale( $type ) {}
@@ -331,7 +331,7 @@ function collator_sort_with_sort_keys( $coll, $arr ) {}
  *
  * @return string  Real locale name from which the
  *                 collation data comes. If the collator
- *                 was instantiated from rules or an error occured,
+ *                 was instantiated from rules or an error occurred,
  *                 returns false.
  */
 function collator_get_locale( $coll, $type ) {}
@@ -391,7 +391,7 @@ function collator_get_error_code( $coll ) {}
  *
  * @param Collator $coll    Collator object.
  *
- * @return string  Description of an error occured in the last
+ * @return string  Description of an error occurred in the last
  *                 Collator API function call.
  */
 function collator_get_error_message( $coll ) {}
index ce2329fe3b817229d5207ff6884f3ef8dd7bbaff..993dab180b43c052a01f4788072d8e38118d257a 100755 (executable)
@@ -1,7 +1,7 @@
 <?php
 
 /**
- * Handling of errors occured in static methods
+ * Handling of errors occurred in static methods
  * when there's no object to get error code/message from.
  *
  * Example #1:
@@ -29,7 +29,7 @@ function intl_get_error_code() {}
 /**
  * Get description of the last error.
  *
- * @return string  Description of an error occured in the last
+ * @return string  Description of an error occurred in the last
  *                 API function call.
  */
 function intl_get_error_message() {}
index 0c5002e281bad6894b5724d629ac57a2e7c3aa2b..272abdb57c6a2f3507b0d5579e0878c1c2a80ffa 100755 (executable)
@@ -215,7 +215,7 @@ class DateFormatter {
         /**
         * Sets the pattern to  use 
          * @param  string $pattern new pattern string to use
-         * @return boolean 'true' if successful, 'false' if an error occured. Bad format
+         * @return boolean 'true' if successful, 'false' if an error occurred. Bad format
          *                 strings are usually the cause of the latter.
          */
        public function setPattern($pattern) {}
@@ -410,7 +410,7 @@ class DateFormatter {
         * Sets the pattern to use
          * @param DateFormatter $fmt The date formatter resource
          * @param  string $pattern new pattern string to use
-         * @return boolean 'true' if successful, 'false' if an error occured. Bad format
+         * @return boolean 'true' if successful, 'false' if an error occurred. Bad format
          *                 strings are usually the cause of the latter.
          */
         function datefmt_set_pattern($fmt , $pattern) {}
index 754b16c62f70d89fa4befe02781cd30aebfc4955..14d98db66a8b0ce4758599098dc75e8bd83582b0 100755 (executable)
@@ -317,7 +317,7 @@ class NumberFormatter {
        /**
         * Get the error text from the last operation.
         *
-        * @return string Description of the last occured error.
+        * @return string Description of the last occurred error.
         */
        public public function getErrorMessage() {}
 
@@ -495,6 +495,6 @@ function numfmt_get_error_code($formatter) {}
  * Get the error text from the last operation.
  *
  * @param NumberFormatter $formatter The formatter resource
- * @return string Description of the last occured error.
+ * @return string Description of the last occurred error.
  */
 function numfmt_get_error_message($formatter) {}
index 5d178f1273a5a3aecac39958effac93ae3283981..e4d047b9790f876a63f55fa0407dcbde403b16ef 100755 (executable)
@@ -54,7 +54,7 @@ class MessageFormatter {
         * @param string    $locale   the locale to use when formatting numbers and dates and suchlike
         * @param string    $pattern  the pattern string to insert things into
         * @param array     $args     the array of values to insert into $pattern
-        * @return string             the formatted pattern string or false if an error occured
+        * @return string             the formatted pattern string or false if an error occurred
         */
        public static function formatMessage($locale, $pattern, $args) {}
 
@@ -148,7 +148,7 @@ class MessageFormatter {
         * @param string    $locale   the locale to use when formatting numbers and dates and suchlike
         * @param string    $pattern  the pattern string to insert things into
         * @param array     $args     the array of values to insert into $pattern
-        * @return string             the formatted pattern string or false if an error occured
+        * @return string             the formatted pattern string or false if an error occurred
         */
        function msgfmt_format_message($locale, $pattern, $args) {}
 
index 33f17306253f7c07440aa88e255e04a3719f9ead..92cdc4cef41c9a83b4850b861880aeb899d0a7c9 100755 (executable)
@@ -67,7 +67,7 @@ void intl_convert_utf8_to_utf16(
                return;
        }
 
-       /* Bail out if an unexpected error occured.
+       /* Bail out if an unexpected error occurred.
         * (U_BUFFER_OVERFLOW_ERROR means that *target buffer is not large enough).
         * (U_STRING_NOT_TERMINATED_WARNING usually means that the input string is empty).
         */
@@ -119,7 +119,7 @@ void intl_convert_utf16_to_utf8(
        *status = U_ZERO_ERROR;
        u_strToUTF8( NULL, 0, &dst_len, src, src_len, status );
 
-       /* Bail out if an unexpected error occured.
+       /* Bail out if an unexpected error occurred.
         * (U_BUFFER_OVERFLOW_ERROR means that *target buffer is not large enough).
         * (U_STRING_NOT_TERMINATED_WARNING usually means that the input string is empty).
         */
index 466ab97e12c86afd461903c61abfa1e91f7b2200..f46285e9d9174c1ca278211e7420fe4164f8f046 100755 (executable)
@@ -110,7 +110,7 @@ PHP_FUNCTION( normalizer_normalize )
        /* normalize */
        size_needed = unorm_normalize( uinput, uinput_len, form, (int32_t) 0 /* options */, uret_buf, uret_len, &status);
        
-       /* Bail out if an unexpected error occured.
+       /* Bail out if an unexpected error occurred.
         * (U_BUFFER_OVERFLOW_ERROR means that *target buffer is not large enough).
         * (U_STRING_NOT_TERMINATED_WARNING usually means that the input string is empty).
         */     
@@ -133,7 +133,7 @@ PHP_FUNCTION( normalizer_normalize )
                /* try normalize again */
                size_needed = unorm_normalize( uinput, uinput_len, form, (int32_t) 0 /* options */, uret_buf, uret_len, &status);
 
-               /* Bail out if an unexpected error occured. */
+               /* Bail out if an unexpected error occurred. */
                if( U_FAILURE(status)  ) {
                        /* Set error messages. */
                        intl_error_set_custom_msg( NULL,"Error normalizing string", 0 TSRMLS_CC );
@@ -234,7 +234,7 @@ PHP_FUNCTION( normalizer_is_normalized )
        
        efree( uinput );
 
-       /* Bail out if an unexpected error occured. */
+       /* Bail out if an unexpected error occurred. */
        if( U_FAILURE(status)  ) {
                /* Set error messages. */
                intl_error_set_custom_msg( NULL,"Error testing if string is the given normalization form.", 0 TSRMLS_CC );
index c7b397270959338b7ac2121df91d19dfd7e2963e..acb683e894c13ff173219cee2fba8148c7835807 100755 (executable)
@@ -19,7 +19,7 @@ function ut_main()
     if( $num === false )
         return $fmt->getErrorMessage() . " (" . $fmt->getErrorCode() . ")\n";
     else
-        return "Ooops, an error should have occured.";
+        return "Ooops, an error should have occurred.";
 }
 
 include_once( 'ut_common.inc' );
index f18a503b5ee39e6b6750a7971c84462855b82323..6d283aa9ca1bcd21ab346eb59f2142881be4d85f 100644 (file)
@@ -162,7 +162,7 @@ void php_clear_stmt_bind(MY_STMT *stmt TSRMLS_DC)
 {
        if (stmt->stmt) {
                if (mysqli_stmt_close(stmt->stmt, TRUE)) {
-                       php_error_docref(NULL TSRMLS_CC, E_WARNING, "Error occured while closing statement");
+                       php_error_docref(NULL TSRMLS_CC, E_WARNING, "Error occurred while closing statement");
                        return;
                }
        }
index b8dd11a699419c161953a6ae28bd47ef7b5f9178..7fc32f7e61b37cab50c79030bd0652164db37349 100644 (file)
@@ -63,7 +63,7 @@ require_once('skipifconnectfailure.inc');
                // NOTE: the error message varies with the MySQL Server version, dump only the error code!
                printf("[009] [%d] (error message varies with the MySQL Server version, check the error code)\n", mysqli_stmt_errno($stmt));
 
-       /* an error occured: affected rows should return -1 */
+       /* an error occurred: affected rows should return -1 */
        if (-1 !== ($tmp = mysqli_stmt_affected_rows($stmt)))
                printf("[010] Expecting int/0, got %s/%s\n", gettype($tmp), $tmp);
 
index 8e8622e54045770d7dd6e7a724a5085ed2fe4815..82ee63458ee5c53f0bf9f0af9195c74caba5672f 100644 (file)
@@ -188,7 +188,7 @@ mysqlnd_handle_local_infile(MYSQLND_CONN_DATA * conn, const char * filename, zen
                char tmp_buf[sizeof(conn->error_info->error)];
                int tmp_error_no;
                *is_warning = TRUE;
-               /* error occured */
+               /* error occurred */
                tmp_error_no = infile.local_infile_error(info, tmp_buf, sizeof(tmp_buf) TSRMLS_CC);
                SET_CLIENT_ERROR(*conn->error_info, tmp_error_no, UNKNOWN_SQLSTATE, tmp_buf);
                /* write empty packet to server */
@@ -211,7 +211,7 @@ mysqlnd_handle_local_infile(MYSQLND_CONN_DATA * conn, const char * filename, zen
                goto infile_error;
        }
 
-       /* error during read occured */
+       /* error during read occurred */
        if (bufsize < 0) {
                char tmp_buf[sizeof(conn->error_info->error)];
                int tmp_error_no;
index e5910a5dca4bb38239d356dc3c5dff441ca3d971..8647e105ef919d9775a4dad06a0db2fdc7326bf6 100755 (executable)
@@ -816,7 +816,7 @@ PHP_FUNCTION(pcntl_exec)
 
                if (execve(path, argv, envp) == -1) {
                        PCNTL_G(last_error) = errno;
-                       php_error_docref(NULL TSRMLS_CC, E_WARNING, "Error has occured: (errno %d) %s", errno, strerror(errno));
+                       php_error_docref(NULL TSRMLS_CC, E_WARNING, "Error has occurred: (errno %d) %s", errno, strerror(errno));
                }
        
                /* Cleanup */
@@ -826,7 +826,7 @@ PHP_FUNCTION(pcntl_exec)
 
                if (execv(path, argv) == -1) {
                        PCNTL_G(last_error) = errno;
-                       php_error_docref(NULL TSRMLS_CC, E_WARNING, "Error has occured: (errno %d) %s", errno, strerror(errno));
+                       php_error_docref(NULL TSRMLS_CC, E_WARNING, "Error has occurred: (errno %d) %s", errno, strerror(errno));
                }
        }
 
@@ -1127,7 +1127,7 @@ PHP_FUNCTION(pcntl_getpriority)
                                php_error_docref(NULL TSRMLS_CC, E_WARNING, "Error %d: Invalid identifier flag", errno);
                                break;
                        default:
-                               php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unknown error %d has occured", errno);
+                               php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unknown error %d has occurred", errno);
                                break;
                }
                RETURN_FALSE;
@@ -1167,7 +1167,7 @@ PHP_FUNCTION(pcntl_setpriority)
                                php_error_docref(NULL TSRMLS_CC, E_WARNING, "Error %d: Only a super user may attempt to increase the process priority", errno);
                                break;
                        default:
-                               php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unknown error %d has occured", errno);
+                               php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unknown error %d has occurred", errno);
                                break;
                }
                RETURN_FALSE;
index d27c1c99628057abbeeaf32b378c7369e6a5a9ff..5349381d92b89fa5a42b96f15384ea89de80f933 100644 (file)
@@ -13,5 +13,5 @@ unlink($file);
 Warning: pcntl_exec() expects at least 1 parameter, 0 given %s
 NULL
 
-Warning: pcntl_exec(): Error has occured: (errno %d) %s
+Warning: pcntl_exec(): Error has occurred: (errno %d) %s
 bool(false)
index 0c2689f9d55d13ccaa363380c49d4f4e48964b57..fc5ec5135bd194b5356219dead5f36f55b747ce5 100755 (executable)
@@ -134,7 +134,7 @@ static int pdo_mysql_fill_stmt_from_result(pdo_stmt_t *stmt TSRMLS_DC) /* {{{ */
 
        row_count = mysql_affected_rows(H->server);
        if (row_count == (my_ulonglong)-1) {
-               /* we either have a query that returned a result set or an error occured
+               /* we either have a query that returned a result set or an error occurred
                   lets see if we have access to a result set */
                if (!H->buffered) {
                        S->result = mysql_use_result(H->server);
index 24bf2bf8a5f556819585708d48db685811f57a04..0b81facf491e018258d3af87a89d1f8c97ee39f6 100644 (file)
@@ -10,7 +10,7 @@ $sxe = simplexml_load_string('<root><node1>1</node1></root>');
 $nodes = $sxe->xpath("/root/node2/@test");
 
 if (! is_array($nodes)) {
-    echo "An error occured\n";
+    echo "An error occurred\n";
 } else {
    echo "Result Count: " . count($nodes) . "\n";
 }
index 96cbf8f4db6de34023f253fcaf6905fa5c0894c1..bf95044d48a87f45da83f8d46c72d4380034bc6c 100644 (file)
@@ -25,7 +25,7 @@ if (!extension_loaded('sockets')) {
     $len = strlen($msg);
     $bytes_sent = socket_sendto($socket, $msg, $len, 0, $address, 1223);
     if ($bytes_sent == -1) {
-        die('An error occured while sending to the socket');
+        die('An error occurred while sending to the socket');
     } else if ($bytes_sent != $len) {
         die($bytes_sent . ' bytes have been sent instead of the ' . $len . ' bytes expected');
     }
@@ -36,7 +36,7 @@ if (!extension_loaded('sockets')) {
     socket_recvfrom($socket, $buf, 12, 0, $from); // cause warning
     $bytes_received = socket_recvfrom($socket, $buf, 12, 0, $from, $port);
     if ($bytes_received == -1) {
-        die('An error occured while receiving from the socket');
+        die('An error occurred while receiving from the socket');
     } else if ($bytes_received != $len) {
         die($bytes_received . ' bytes have been received instead of the ' . $len . ' bytes expected');
     }
index 1fa42fd5da4d8b0b4c6ffa2d84fe9b785543da65..04f62eddd37052afc1811b80d73097955edecdb8 100644 (file)
@@ -26,7 +26,7 @@ require 'ipv6_skipif.inc';
     $len = strlen($msg);
     $bytes_sent = socket_sendto($socket, $msg, $len, 0, $address, 1223);
     if ($bytes_sent == -1) {
-        die('An error occured while sending to the socket');
+        die('An error occurred while sending to the socket');
     } else if ($bytes_sent != $len) {
         die($bytes_sent . ' bytes have been sent instead of the ' . $len . ' bytes expected');
     }
@@ -37,7 +37,7 @@ require 'ipv6_skipif.inc';
     socket_recvfrom($socket, $buf, 12, 0, $from); // cause warning
     $bytes_received = socket_recvfrom($socket, $buf, 12, 0, $from, $port);
     if ($bytes_received == -1) {
-        die('An error occured while receiving from the socket');
+        die('An error occurred while receiving from the socket');
     } else if ($bytes_received != $len) {
         die($bytes_received . ' bytes have been received instead of the ' . $len . ' bytes expected');
     }
index 4cfdebbcbe0afd1c56fc927716f0dfe6a2f259fb..55ad75c65e4305e32b1500ea8f8d0cf39cb4a987 100644 (file)
@@ -30,7 +30,7 @@ if (!extension_loaded('sockets')) {
     $bytes_sent = socket_sendto($socket, $msg, $len, 0, $address);
     if ($bytes_sent == -1) {
                @unlink($address);
-        die('An error occured while sending to the socket');
+        die('An error occurred while sending to the socket');
     } else if ($bytes_sent != $len) {
                @unlink($address);
         die($bytes_sent . ' bytes have been sent instead of the ' . $len . ' bytes expected');
@@ -41,7 +41,7 @@ if (!extension_loaded('sockets')) {
     $bytes_received = socket_recvfrom($socket, $buf, 12, 0, $from);
     if ($bytes_received == -1) {
                @unlink($address);
-        die('An error occured while receiving from the socket');
+        die('An error occurred while receiving from the socket');
     } else if ($bytes_received != $len) {
                @unlink($address);
         die($bytes_received . ' bytes have been received instead of the ' . $len . ' bytes expected');
index 85410bdf1e7ad7140476e49aa409f7dbf4f696b7..10da0b5fd935f6ecb3c6e358ac53e1569b076005 100644 (file)
@@ -1,5 +1,5 @@
 --TEST--
-Bug #52238 - Crash when an Exception occured in iterator_to_array
+Bug #52238 - Crash when an Exception occurred in iterator_to_array
 --FILE--
 <?php
 class Foo implements IteratorAggregate
index a3d542a40c3d2478e6c439b551872d89bf6ec025..d96367e2120f1038b70678e9f0a50feb844016d3 100644 (file)
@@ -23307,7 +23307,7 @@ static int os2OpenSharedMemory( os2File *fd, int szRegion ) {
     sqlite3_mutex_leave(pNode->mutex);
     
   } else {
-    /* Error occured. Free our link object. */
+    /* Error occurred. Free our link object. */
     sqlite3_free(pLink);  
   }
 
@@ -28994,7 +28994,7 @@ static int fillInUnixFile(
     unixEnterMutex();
     rc = findInodeInfo(pNew, &pNew->pInode);
     if( rc!=SQLITE_OK ){
-      /* If an error occured in findInodeInfo(), close the file descriptor
+      /* If an error occurred in findInodeInfo(), close the file descriptor
       ** immediately, before releasing the mutex. findInodeInfo() may fail
       ** in two scenarios:
       **
@@ -32173,7 +32173,7 @@ static int seekWinFile(winFile *pFile, sqlite3_int64 iOffset){
   ** containing the lower 32-bits of the new file-offset. Or, if it fails,
   ** it returns INVALID_SET_FILE_POINTER. However according to MSDN, 
   ** INVALID_SET_FILE_POINTER may also be a valid new offset. So to determine 
-  ** whether an error has actually occured, it is also necessary to call 
+  ** whether an error has actually occurred, it is also necessary to call 
   ** GetLastError().
   */
   dwRet = SetFilePointer(pFile->h, lowerBits, &upperBits, FILE_BEGIN);
@@ -32273,7 +32273,7 @@ static int winWrite(
   int amt,                        /* Number of bytes to write */
   sqlite3_int64 offset            /* Offset into the file to begin writing at */
 ){
-  int rc;                         /* True if error has occured, else false */
+  int rc;                         /* True if error has occurred, else false */
   winFile *pFile = (winFile*)id;  /* File handle */
 
   assert( amt>0 );
@@ -37068,7 +37068,7 @@ int sqlite3PagerTrace=1;  /* True to enable tracing */
 **    * A write transaction is active.
 **    * An EXCLUSIVE or greater lock is held on the database file.
 **    * All writing and syncing of journal and database data has finished.
-**      If no error occured, all that remains is to finalize the journal to
+**      If no error occurred, all that remains is to finalize the journal to
 **      commit the transaction. If an error did occur, the caller will need
 **      to rollback the transaction. 
 **
@@ -54279,7 +54279,7 @@ SQLITE_PRIVATE int sqlite3BtreeInsert(
   insertCell(pPage, idx, newCell, szNew, 0, 0, &rc);
   assert( rc!=SQLITE_OK || pPage->nCell>0 || pPage->nOverflow>0 );
 
-  /* If no error has occured and pPage has an overflow cell, call balance() 
+  /* If no error has occurred and pPage has an overflow cell, call balance() 
   ** to redistribute the cells within the tree. Since balance() may move
   ** the cursor, zero the BtCursor.info.nSize and BtCursor.validNKey
   ** variables.
@@ -57935,7 +57935,7 @@ SQLITE_PRIVATE int sqlite3VdbeAssertMayAbort(Vdbe *v, int mayAbort){
   }
   sqlite3DbFree(v->db, sIter.apSub);
 
-  /* Return true if hasAbort==mayAbort. Or if a malloc failure occured.
+  /* Return true if hasAbort==mayAbort. Or if a malloc failure occurred.
   ** If malloc failed, then the while() loop above may not have iterated
   ** through all opcodes and hasAbort may be set incorrectly. Return
   ** true for this case to prevent the assert() in the callers frame
@@ -59562,7 +59562,7 @@ SQLITE_PRIVATE int sqlite3VdbeCloseStatement(Vdbe *p, int eOp){
 
   /* If p->iStatement is greater than zero, then this Vdbe opened a 
   ** statement transaction that should be closed here. The only exception
-  ** is that an IO error may have occured, causing an emergency rollback.
+  ** is that an IO error may have occurred, causing an emergency rollback.
   ** In this case (db->nStatement==0), and there is nothing to do.
   */
   if( db->nStatement && p->iStatement ){
@@ -59697,7 +59697,7 @@ SQLITE_PRIVATE int sqlite3VdbeHalt(Vdbe *p){
       **
       ** Even if the statement is read-only, it is important to perform
       ** a statement or transaction rollback operation. If the error 
-      ** occured while writing to the journal, sub-journal or database
+      ** occurred while writing to the journal, sub-journal or database
       ** file as part of an effort to free up cache space (see function
       ** pagerStress() in pager.c), the rollback is required to restore 
       ** the pager to a consistent state.
@@ -61245,7 +61245,7 @@ end_of_step:
   assert( p->rc!=SQLITE_ROW && p->rc!=SQLITE_DONE );
   if( p->isPrepareV2 && rc!=SQLITE_ROW && rc!=SQLITE_DONE ){
     /* If this statement was prepared using sqlite3_prepare_v2(), and an
-    ** error has occured, then return the error code in p->rc to the
+    ** error has occurred, then return the error code in p->rc to the
     ** caller. Set the error code in the database handle to the same value.
     */ 
     rc = db->errCode = p->rc;
@@ -113286,7 +113286,7 @@ static int fts3CursorSeek(sqlite3_context *pContext, Fts3Cursor *pCsr){
     }else{
       int rc = sqlite3_reset(pCsr->pStmt);
       if( rc==SQLITE_OK ){
-        /* If no row was found and no error has occured, then the %_content
+        /* If no row was found and no error has occurred, then the %_content
         ** table is missing a row that is present in the full-text index.
         ** The data structures are corrupt.
         */
index 4bf24fbc6a50afe916fd2d7c479848b4990b34c3..0bb8616d96f03848b90a7c5bdc4e2a61b2dd8593 100644 (file)
@@ -1097,7 +1097,7 @@ static int php_sqlite3_stream_close(php_stream *stream, int close_handle TSRMLS_
        php_stream_sqlite3_data *sqlite3_stream = (php_stream_sqlite3_data *) stream->abstract;
        
        if (sqlite3_blob_close(sqlite3_stream->blob) != SQLITE_OK) {
-               /* Error occured, but it still closed */
+               /* Error occurred, but it still closed */
        }
 
        efree(sqlite3_stream);
index 646005ebc7858cfcf8f431adbe94aeac1a2ceb17..a5637db50d76ba1678e628667bb028acf01487d6 100644 (file)
@@ -3833,7 +3833,7 @@ PHP_NAMED_FUNCTION(php_inet_ntop)
        }
 
        if (!inet_ntop(af, address, buffer, sizeof(buffer))) {
-               php_error_docref(NULL TSRMLS_CC, E_WARNING, "An unknown error occured");
+               php_error_docref(NULL TSRMLS_CC, E_WARNING, "An unknown error occurred");
                RETURN_FALSE;
        }
 
index 7a2eb762db13f096577b8a63df7ce83c6bad6766..761df972533eac209f63d74ecde981ab126d4338 100644 (file)
@@ -20,7 +20,7 @@ for($mask = 0000; $mask <= 0777; $mask++) {
   var_dump( umask() );
   echo "\n";
   if ($mask != umask()) {
-    die('An error occured while changing back the umask');
+    die('An error occurred while changing back the umask');
   }
 }
 
index 9a6713dc55f0a061ac4c041505636b37a0d99800..2644210cbf3aaaf0936bf933dd6e685203b4a79e 100644 (file)
@@ -26,7 +26,7 @@
     if(tidy_warning_count() ||
        tidy_error_count()) {
         
-        echo "\n\nThe following errors or warnings occured:\n";
+        echo "\n\nThe following errors or warnings occurred:\n";
         echo tidy_get_error_buffer();
         echo "\n";
     }
index 4dfd7643e133c9dbd98261eb6ed1faaa3d3115b4..2ce683acadda5a38e3ee5e625e67973464933cad 100644 (file)
@@ -25,7 +25,7 @@
     
     if(!empty($tidy->errorBuffer)) {
         
-        echo "\n\nThe following errors or warnings occured:\n";
+        echo "\n\nThe following errors or warnings occurred:\n";
         echo "{$tidy->errorBuffer}\n";
         
     }
index 5ac1a69196b2ff94a8cd3ef6fb58b707a068b4e6..72d8f5db662cae343709bb93004b6846e17cda0c 100644 (file)
@@ -1238,7 +1238,7 @@ static PHP_FUNCTION(tidy_parse_string)
 /* }}} */
 
 /* {{{ proto string tidy_get_error_buffer()
-   Return warnings and errors which occured parsing the specified document*/
+   Return warnings and errors which occurred parsing the specified document*/
 static PHP_FUNCTION(tidy_get_error_buffer)
 {
        TIDY_FETCH_OBJECT;
index d48e7090aead3ce37ff6b4fbe3ca19455175db38..5aa6aa943b2a8084baa12a0119c9a6f8083b9a42 100644 (file)
@@ -336,7 +336,7 @@ static void xsl_ext_function_php(xmlXPathParserContextPtr ctxt, int nargs, int t
                                php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to call handler %s()", Z_STRVAL_P(&handler));
                                valuePush(ctxt, xmlXPathNewString(""));
                        }
-               /* retval is == NULL, when an exception occured, don't report anything, because PHP itself will handle that */
+               /* retval is == NULL, when an exception occurred, don't report anything, because PHP itself will handle that */
                } else if (retval == NULL) {
                } else {
                        if (retval->type == IS_OBJECT && instanceof_function( Z_OBJCE_P(retval), dom_node_class_entry TSRMLS_CC)) {