]> granicus.if.org Git - php/commitdiff
Fix some misspellings
authorGabriel Caruso <carusogabriel34@gmail.com>
Fri, 10 Aug 2018 02:19:55 +0000 (23:19 -0300)
committerChristoph M. Becker <cmbecker69@gmx.de>
Sun, 12 Aug 2018 14:15:45 +0000 (16:15 +0200)
95 files changed:
README.STREAMS
Zend/tests/019.phpt
Zend/tests/assign_ref_error_var_handling.phpt
Zend/tests/assign_to_obj_001.phpt
Zend/tests/bug26698.phpt
Zend/tests/bug32674.phpt
Zend/tests/bug35017.phpt
Zend/tests/bug35437.phpt
Zend/tests/bug44660.phpt
Zend/tests/bug51791.phpt
Zend/tests/bug61165.phpt
Zend/tests/bug63635.phpt
Zend/tests/bug65784.phpt
Zend/tests/bug69892.phpt
Zend/tests/bug70012.phpt
Zend/tests/bug75420.phpt
Zend/tests/ns_010.phpt
Zend/tests/ns_020.phpt
Zend/tests/ns_064.phpt
Zend/zend_alloc.c
Zend/zend_ast.c
Zend/zend_compile.c
Zend/zend_compile.h
Zend/zend_exceptions.c
Zend/zend_inheritance.c
Zend/zend_interfaces.c
Zend/zend_object_handlers.c
ext/bcmath/bcmath.c
ext/date/php_date.c
ext/exif/exif.c
ext/fileinfo/fileinfo.c
ext/imap/tests/imap_include.inc
ext/imap/tests/skipif.inc
ext/interbase/tests/skipif.inc
ext/intl/locale/locale_methods.c
ext/mysqli/mysqli_nonapi.c
ext/oci8/oci8_failover.c
ext/odbc/php_odbc.c
ext/opcache/Optimizer/dce.c
ext/opcache/Optimizer/sccp.c
ext/opcache/ZendAccelerator.c
ext/pgsql/pgsql.c
ext/pgsql/php_pgsql.h
ext/phar/phar/pharcommand.inc
ext/phar/tests/zip/files/corrupt_zipmaker.php.inc
ext/reflection/php_reflection.c
ext/session/session.c
ext/soap/php_http.c
ext/spl/internal/multipleiterator.inc
ext/spl/internal/recursivearrayiterator.inc
ext/spl/internal/recursivecachingiterator.inc
ext/spl/internal/recursivefilteriterator.inc
ext/spl/internal/recursiveiteratoriterator.inc
ext/spl/internal/splfileobject.inc
ext/spl/internal/splobjectstorage.inc
ext/spl/php_spl.c
ext/spl/spl.php
ext/spl/spl_directory.c
ext/spl/spl_observer.c
ext/standard/config.m4
ext/standard/credits_ext.h
ext/standard/credits_sapi.h
ext/standard/file.c
ext/standard/filestat.c
ext/standard/image.c
ext/standard/link_win32.c
ext/standard/streamsfuncs.c
ext/standard/tests/file/file.inc
ext/standard/tests/mail/mail_include.inc
ext/standard/tests/mail/mail_skipif.inc
ext/zip/php_zip.c
main/main.c
main/output.c
main/snprintf.h
main/streams/php_stream_filter_api.h
run-tests.php
sapi/cgi/cgi_main.c
sapi/fpm/fpm/events/devpoll.c
sapi/fpm/fpm/fpm_children.c
sapi/fpm/fpm/fpm_main.c
sapi/fpm/fpm/fpm_request.c
sapi/fpm/tests/fcgi.inc
sapi/litespeed/lsapi_main.c
sapi/phpdbg/phpdbg_cmd.c
sapi/phpdbg/phpdbg_help.c
sapi/phpdbg/phpdbg_prompt.c
sapi/phpdbg/phpdbg_watch.c
sapi/phpdbg/xml.md
scripts/dev/credits
server-tests.php
tests/classes/class_abstract.phpt
tests/classes/clone_004.phpt
tests/classes/ctor_dtor_inheritance.phpt
tests/output/ob_get_contents_basic_001.phpt
win32/sendmail.c

index f22cab5d711222eeb293f0eae801fe962727a8c1..57dc6121172bcb3f97a532fff43d21f132219618 100644 (file)
@@ -364,7 +364,7 @@ php_stream_ops my_ops = {
     "Strange MySQL example"
 }
 
-Thats it!
+That's it!
 
 Take a look at the STDIO implementation in streams.c for more information
 about how these operations work.
index 0548a38f88364e215c3998279ec4d5ae48fa93d8..a14a3aead639bee463641a0abd75f8db90861a08 100644 (file)
@@ -149,7 +149,7 @@ foreach ($array_variables as $array_var) {
   var_dump( empty($array_var) ); // expected: bool(true)
 }
 
-echo "\n*** Testing unset(), emtpy() & isset() with resource variables ***\n";
+echo "\n*** Testing unset(), empty() & isset() with resource variables ***\n";
 $fp = fopen(__FILE__, "r");
 $dfp = opendir( dirname(__FILE__) );
 $resources = array (
@@ -1184,7 +1184,7 @@ bool(false)
 bool(false)
 bool(true)
 
-*** Testing unset(), emtpy() & isset() with resource variables ***
+*** Testing unset(), empty() & isset() with resource variables ***
 -- Iteration 1 --
 resource(%d) of type (stream)
 bool(true)
index ad016631312e6420b5dce2d61de6f52209a07695..5ecb577ba7ccff3852f01ac4d23c2406b65200bf 100644 (file)
@@ -1,5 +1,5 @@
 --TEST--
-If the LHS of ref-assign ERRORs, that takes precendence over the "only variables" notice
+If the LHS of ref-assign ERRORs, that takes precedence over the "only variables" notice
 --FILE--
 <?php
 
index 4b3cd31b929b25fc6dba4bffd94169e83e3af937..37b6c594d0880075497384c78f9fdf8021ad3c0e 100644 (file)
@@ -1,5 +1,5 @@
 --TEST--
-assgin to object leaks with ref
+assign to object leaks with ref
 --FILE--
 <?php
 function &a($i) {
index a4d6ad13f839f0bf28d41ad7d73590367db49071..8fbf551b6bfddf65bf2b1c15b1f43a2797fd5e07 100644 (file)
@@ -1,5 +1,5 @@
 --TEST--
-Bug #26698 (Thrown exceptions while evaluting argument to pass as parameter crash PHP)
+Bug #26698 (Thrown exceptions while evaluating argument to pass as parameter crash PHP)
 --FILE--
 <?php
 
index 771270f93b0f5853264df9eed1b1efddc5570ecf..0e08fa72ddfd64b53e1272c05b1a7b282d95e676 100644 (file)
@@ -34,7 +34,7 @@ class collection implements Iterator {
   }
 
   public function valid() {
-    throw new Exception('shit happend');
+    throw new Exception('shit happened');
 
     return ($this->current() !== false);
   }
index 0a89d23aa184fdb9ad8b43e56eba3394041da7ff..3cd28a375557500bf1e51dffe99f9e90ebf128ce 100644 (file)
@@ -11,11 +11,11 @@ try {
        }
        echo "?\n";
 } catch(Exception $e) { 
-  echo "This Exception should be catched\n";
+  echo "This Exception should be caught\n";
 }
 function errorHandler($errno, $errstr, $errfile, $errline, $vars) {
        throw new Exception('Some Exception');
 }
 ?>
 --EXPECT--
-This Exception should be catched
+This Exception should be caught
index 73222a9f23256711978fb8d8f62fded179a4a809..4f61e4fbfd528df0cf35f2ed2dc9ca1b621df709 100644 (file)
@@ -20,8 +20,8 @@ class TestClass
 try {
        TestClass::testMethod();
 } catch (Exception $e) {
-       echo "Catched: ".$e->getMessage()."\n";
+       echo "Caught: ".$e->getMessage()."\n";
 }
 ?>
 --EXPECT--
-Catched: Error occuried: Non-static method TestClass::testMethod() should not be called statically
+Caught: Error occuried: Non-static method TestClass::testMethod() should not be called statically
index 002744ce647eb4dfafb5264dd65dbf124596d40a..980c2274cdaee6593efe7964f892c39dd9085ee4 100644 (file)
@@ -1,5 +1,5 @@
 --TEST--
-Bug #44660 (Indexed and reference assignment to propery of non-object don't trigger warning)
+Bug #44660 (Indexed and reference assignment to property of non-object don't trigger warning)
 --FILE--
 <?php
 $s = "hello";
index b6ced4bccd6c5ae35d5c4e437c58c17935842f3e..0b92fa8c62592f0e31ccdf4273db32840a1c77d9 100644 (file)
@@ -1,5 +1,5 @@
 --TEST--
-Bug #51791 (constant() failed to check undefined constant and php interpreter stoped)
+Bug #51791 (constant() failed to check undefined constant and php interpreter stopped)
 --FILE--
 <?php
 
index 478fa00a0f0eb03a2b458d16988af96800c30cb4..900a7a8d2b18f73a45cab11e038e6aaf47592cf6 100644 (file)
@@ -10,7 +10,7 @@ class T {
     public function __toString() {
                global $handler;
            $handler = $this;
-        $this->_this = $this; // <-- uncoment this
+        $this->_this = $this; // <-- uncomment this
         return 'A';
     }
 }
index 6f6fc6a44f46e81eb72e46f9cb0c21093af8b824..a72d3dd31d26ece69262f286f4299b11284f2015 100644 (file)
@@ -4,17 +4,17 @@ Bug #63635 (Segfault in gc_collect_cycles)
 <?php
 class Node {
        public $parent = NULL;
-       public $childs = array();
+       public $children = array();
        
        function __construct(Node $parent=NULL) {
                if ($parent) {
-                       $parent->childs[] = $this;
+                       $parent->children[] = $this;
                }
-               $this->childs[] = $this;
+               $this->children[] = $this;
        }
        
        function __destruct() {
-               $this->childs = NULL;
+               $this->children = NULL;
        }       
 }
 
index 663ea95761c7b311184edc4af7c0e6fb58aa69c1..43369e2d607514b532947eb0da84027ed5025f98 100644 (file)
@@ -8,7 +8,7 @@ function foo1() {
                return true;
        } finally {
                try {
-                       throw new Exception("catched");
+                       throw new Exception("caught");
                } catch (Exception $e) {
                }
        }
@@ -25,11 +25,11 @@ try {
 function foo2() {
        try  {
                try {
-                       throw new Exception("catched");
+                       throw new Exception("caught");
                        return true;
                } finally {
                        try {
-                               throw new Exception("catched");
+                               throw new Exception("caught");
                        } catch (Exception $e) {
                        }
                }
@@ -42,7 +42,7 @@ var_dump($foo);
 
 function foo3() {
        try {
-               throw new Exception("not catched");
+               throw new Exception("not caught");
                return true;
        } finally {
                try {
@@ -57,7 +57,7 @@ $bar = foo3();
 string(9) "not catch"
 NULL
 
-Fatal error: Uncaught Exception: not catched in %sbug65784.php:42
+Fatal error: Uncaught Exception: not caught in %sbug65784.php:42
 Stack trace:
 #0 %sbug65784.php(52): foo3()
 #1 {main}
index d14f85fa5225cfaff56cfdd009fb5fb5f81831f2..f6380449350d91f4ff37657ba2da32c20e5401d0 100644 (file)
@@ -1,5 +1,5 @@
 --TEST--
-Bug #69892: Different arrays compare indentical due to integer key truncation
+Bug #69892: Different arrays compare identical due to integer key truncation
 --SKIPIF--
 <?php if (PHP_INT_SIZE != 8) die("skip this test is for 64bit platforms only"); ?>
 --FILE--
index 5337649d2d8908f8a5f627de8435619a79a88b83..9e532218a917b70fd8fbb6c2cb74e0d00862672b 100644 (file)
@@ -15,7 +15,7 @@ try {
                        echo "    Inner finally\n";
                }
        }
-       echo "Outer shouldnt get here\n";
+       echo "Outer shouldn't get here\n";
 } catch (Exception $e) {
        echo "Outer catch\n";
 } finally {
index 5528ad301b222363f46aa7238a5e2ec64def2dcb..05ef8928791ada3f5e1ae0cbd2ee2295b5e43e2e 100644 (file)
@@ -1,5 +1,5 @@
 --TEST--
-Bug #75420 (Crash when modifing property name in __isset for BP_VAR_IS)
+Bug #75420 (Crash when modifying property name in __isset for BP_VAR_IS)
 --FILE--
 <?php
 
index 28ef61bcdd2bdaa44803ba0e95ed07e1e8f48669..537757a66cec000e3727ad160cf21f437b40c11e 100644 (file)
@@ -1,5 +1,5 @@
 --TEST--
-010: Accesing internal namespace class
+010: Accessing internal namespace class
 --FILE--
 <?php
 namespace X;
index ec4fda02987186de0f08cb1f76ea50e883c72254..5a391771e9ebc50b5a7c8fced9159d02cc7f9097 100644 (file)
@@ -1,5 +1,5 @@
 --TEST--
-020: Accesing internal namespace function
+020: Accessing internal namespace function
 --FILE--
 <?php
 namespace X;
index 0a7c4bc82d17f035a14bc66492af8eb1ae9e70b0..e287a1e9b21e3431dfc6959e1fd44018b31c17ee 100644 (file)
@@ -1,5 +1,5 @@
 --TEST--
-Magic methods in overrided stdClass inside namespace
+Magic methods in overridden stdClass inside namespace
 --FILE--
 <?php
 
index 11691d837759d2d1b0812431047951606b8a5cf1..2efa36129719a30464233cf69f048cbf99751c72 100644 (file)
@@ -196,7 +196,7 @@ int zend_mm_use_huge_pages = 0;
 #endif
 
 /*
- * Memory is retrived from OS by chunks of fixed size 2MB.
+ * Memory is retrieved from OS by chunks of fixed size 2MB.
  * Inside chunk it's managed by pages of fixed size 4096B.
  * So each chunk consists from 512 pages.
  * The first page of each chunk is reseved for chunk header.
@@ -254,7 +254,7 @@ struct _zend_mm_heap {
 
        zend_mm_chunk     *main_chunk;
        zend_mm_chunk     *cached_chunks;                       /* list of unused chunks */
-       int                chunks_count;                        /* number of alocated chunks */
+       int                chunks_count;                        /* number of allocated chunks */
        int                peak_chunks_count;           /* peak number of allocated chunks for current request */
        int                cached_chunks_count;         /* number of cached chunks */
        double             avg_chunks_count;            /* average number of chunks allocated per request */
index 1907df258d4dd3ad3f3def973565c3647a471436..9e77e17c2ac840c19e9d83a4b788ffed40ea43af 100644 (file)
@@ -821,7 +821,7 @@ ZEND_API void zend_ast_apply(zend_ast *ast, zend_ast_apply_func fn) {
 }
 
 /*
- * Operator Precendence
+ * Operator Precedence
  * ====================
  * priority  associativity  operators
  * ----------------------------------
index 7c63771fed9cdff209914847b010b5eee9874be2..9b14d499f7c24126c9b5689dd6df9672bed13ec6 100644 (file)
@@ -1954,7 +1954,7 @@ static void zend_find_live_range(zend_op *opline, zend_uchar type, uint32_t var)
                                   def->opcode == ZEND_JMPNZ_EX ||
                                   def->opcode == ZEND_BOOL ||
                                   def->opcode == ZEND_BOOL_NOT) {
-                               /* result IS_BOOL, it does't have to be destroyed */
+                               /* result IS_BOOL, it doesn't have to be destroyed */
                                break;
                        } else if (def->opcode == ZEND_DECLARE_CLASS ||
                                   def->opcode == ZEND_DECLARE_INHERITED_CLASS ||
index e1bb9eb376341926acb46f2c637d5c6fadfdfb26..53f646d930d695dded903008d5127e51849ea24a 100644 (file)
@@ -302,7 +302,7 @@ typedef struct _zend_oparray_context {
 /*                                                        |     |     |     */
 #define ZEND_ACC_GENERATOR               (1 << 23) /*     |  X  |     |     */
 /*                                                        |     |     |     */
-/* Function with varable number of arguments              |     |     |     */
+/* Function with variable number of arguments             |     |     |     */
 #define ZEND_ACC_VARIADIC                (1 << 24) /*     |  X  |     |     */
 /*                                                        |     |     |     */
 /* Immutable op_array (lazy loading)                      |     |     |     */
index e4f2a99da25c6bddd7fbe8cf9b90cac04b06cce6..0c30a6be30bc6d44f21de40158845b5c9528e243 100644 (file)
@@ -761,7 +761,7 @@ static const zend_function_entry zend_funcs_throwable[] = {
  * such exceptions in that handler.
  * Also all getXY() methods are final because thy serve as read only access to
  * their corresponding properties, no more, no less. If after all you need to
- * override somthing then it is method __toString().
+ * override something then it is method __toString().
  * And never try to change the state of exceptions and never implement anything
  * that gives the user anything to accomplish this.
  */
index 8af409f1919e2a5463f603059d32d7331123e03b..9df10b3a97522a15f50a3c1615315888ce665c32 100644 (file)
@@ -25,7 +25,7 @@
 #include "zend_smart_str.h"
 #include "zend_operators.h"
 
-static void overriden_ptr_dtor(zval *zv) /* {{{ */
+static void overridden_ptr_dtor(zval *zv) /* {{{ */
 {
        efree_size(Z_PTR_P(zv), sizeof(zend_function));
 }
@@ -1172,7 +1172,7 @@ static void zend_add_magic_methods(zend_class_entry* ce, zend_string* mname, zen
 }
 /* }}} */
 
-static void zend_add_trait_method(zend_class_entry *ce, const char *name, zend_string *key, zend_function *fn, HashTable **overriden) /* {{{ */
+static void zend_add_trait_method(zend_class_entry *ce, const char *name, zend_string *key, zend_function *fn, HashTable **overridden) /* {{{ */
 {
        zend_function *existing_fn = NULL;
        zend_function *new_fn;
@@ -1187,9 +1187,9 @@ static void zend_add_trait_method(zend_class_entry *ce, const char *name, zend_s
 
                if (existing_fn->common.scope == ce) {
                        /* members from the current class override trait methods */
-                       /* use temporary *overriden HashTable to detect hidden conflict */
-                       if (*overriden) {
-                               if ((existing_fn = zend_hash_find_ptr(*overriden, key)) != NULL) {
+                       /* use temporary *overridden HashTable to detect hidden conflict */
+                       if (*overridden) {
+                               if ((existing_fn = zend_hash_find_ptr(*overridden, key)) != NULL) {
                                        if (existing_fn->common.fn_flags & ZEND_ACC_ABSTRACT) {
                                                /* Make sure the trait method is compatible with previosly declared abstract method */
                                                if (UNEXPECTED(!zend_traits_method_compatibility_check(fn, existing_fn))) {
@@ -1209,10 +1209,10 @@ static void zend_add_trait_method(zend_class_entry *ce, const char *name, zend_s
                                        }
                                }
                        } else {
-                               ALLOC_HASHTABLE(*overriden);
-                               zend_hash_init_ex(*overriden, 8, NULL, overriden_ptr_dtor, 0, 0);
+                               ALLOC_HASHTABLE(*overridden);
+                               zend_hash_init_ex(*overridden, 8, NULL, overridden_ptr_dtor, 0, 0);
                        }
-                       zend_hash_update_mem(*overriden, key, fn, sizeof(zend_function));
+                       zend_hash_update_mem(*overridden, key, fn, sizeof(zend_function));
                        return;
                } else if (existing_fn->common.fn_flags & ZEND_ACC_ABSTRACT &&
                                (existing_fn->common.scope->ce_flags & ZEND_ACC_INTERFACE) == 0) {
@@ -1274,7 +1274,7 @@ static void zend_fixup_trait_method(zend_function *fn, zend_class_entry *ce) /*
 }
 /* }}} */
 
-static int zend_traits_copy_functions(zend_string *fnname, zend_function *fn, zend_class_entry *ce, HashTable **overriden, HashTable *exclude_table, zend_class_entry **aliases) /* {{{ */
+static int zend_traits_copy_functions(zend_string *fnname, zend_function *fn, zend_class_entry *ce, HashTable **overridden, HashTable *exclude_table, zend_class_entry **aliases) /* {{{ */
 {
        zend_trait_alias  *alias, **alias_ptr;
        zend_string       *lcname;
@@ -1300,7 +1300,7 @@ static int zend_traits_copy_functions(zend_string *fnname, zend_function *fn, ze
                                }
 
                                lcname = zend_string_tolower(alias->alias);
-                               zend_add_trait_method(ce, ZSTR_VAL(alias->alias), lcname, &fn_copy, overriden);
+                               zend_add_trait_method(ce, ZSTR_VAL(alias->alias), lcname, &fn_copy, overridden);
                                zend_string_release_ex(lcname, 0);
 
                                /* Record the trait from which this alias was resolved. */
@@ -1352,7 +1352,7 @@ static int zend_traits_copy_functions(zend_string *fnname, zend_function *fn, ze
                        }
                }
 
-               zend_add_trait_method(ce, ZSTR_VAL(fn->common.function_name), fnname, &fn_copy, overriden);
+               zend_add_trait_method(ce, ZSTR_VAL(fn->common.function_name), fnname, &fn_copy, overridden);
        }
 
        return ZEND_HASH_APPLY_KEEP;
@@ -1496,7 +1496,7 @@ static void zend_traits_init_trait_structures(zend_class_entry *ce, HashTable **
 static void zend_do_traits_method_binding(zend_class_entry *ce, HashTable **exclude_tables, zend_class_entry **aliases) /* {{{ */
 {
        uint32_t i;
-       HashTable *overriden = NULL;
+       HashTable *overridden = NULL;
        zend_string *key;
        zend_function *fn;
 
@@ -1504,7 +1504,7 @@ static void zend_do_traits_method_binding(zend_class_entry *ce, HashTable **excl
                for (i = 0; i < ce->num_traits; i++) {
                        /* copies functions, applies defined aliasing, and excludes unused trait methods */
                        ZEND_HASH_FOREACH_STR_KEY_PTR(&ce->traits[i]->function_table, key, fn) {
-                               zend_traits_copy_functions(key, fn, ce, &overriden, exclude_tables[i], aliases);
+                               zend_traits_copy_functions(key, fn, ce, &overridden, exclude_tables[i], aliases);
                        } ZEND_HASH_FOREACH_END();
 
                        if (exclude_tables[i]) {
@@ -1516,7 +1516,7 @@ static void zend_do_traits_method_binding(zend_class_entry *ce, HashTable **excl
        } else {
                for (i = 0; i < ce->num_traits; i++) {
                        ZEND_HASH_FOREACH_STR_KEY_PTR(&ce->traits[i]->function_table, key, fn) {
-                               zend_traits_copy_functions(key, fn, ce, &overriden, NULL, aliases);
+                               zend_traits_copy_functions(key, fn, ce, &overridden, NULL, aliases);
                        } ZEND_HASH_FOREACH_END();
                }
        }
@@ -1525,9 +1525,9 @@ static void zend_do_traits_method_binding(zend_class_entry *ce, HashTable **excl
                zend_fixup_trait_method(fn, ce);
        } ZEND_HASH_FOREACH_END();
 
-       if (overriden) {
-               zend_hash_destroy(overriden);
-               FREE_HASHTABLE(overriden);
+       if (overridden) {
+               zend_hash_destroy(overridden);
+               FREE_HASHTABLE(overridden);
        }
 }
 /* }}} */
index addc9e560f826749c3dd21ff8162d78e091227f2..7ccfe1fa750825994acc7e05b0f37e5b58cc9b0d 100644 (file)
@@ -315,7 +315,7 @@ static int zend_implement_aggregate(zend_class_entry *interface, zend_class_entr
                        /* inheritance ensures the class has necessary userland methods */
                        return SUCCESS;
                } else if (class_type->get_iterator != zend_user_it_get_new_iterator) {
-                       /* c-level get_iterator cannot be changed (exception being only Traversable is implmented) */
+                       /* c-level get_iterator cannot be changed (exception being only Traversable is implemented) */
                        if (class_type->num_interfaces) {
                                for (i = 0; i < class_type->num_interfaces; i++) {
                                        if (class_type->interfaces[i] == zend_ce_iterator) {
index ab7c06859e0afd4a64875cfd759f46a2f09bd01b..810e323f4e0d14f7ec4e836cb08b84ccb4a44263 100644 (file)
@@ -1424,7 +1424,7 @@ ZEND_API zval *zend_std_get_static_property(zend_class_entry *ce, zend_string *p
                }
        }
 
-       /* check if static properties were destoyed */
+       /* check if static properties were destroyed */
        if (UNEXPECTED(CE_STATIC_MEMBERS(ce) == NULL)) {
                if (ce->type == ZEND_INTERNAL_CLASS) {
                        zend_intenal_class_init_statics(ce);
index 9a39642a2d01dfa67fb2edc397f5ab696651f669..6404969b4f026ba07f9b7460208ce90f8daccc54 100644 (file)
@@ -472,7 +472,7 @@ PHP_FUNCTION(bcpow)
 /* }}} */
 
 /* {{{ proto string bcsqrt(string operand [, int scale])
-   Returns the square root of an arbitray precision number */
+   Returns the square root of an arbitrary precision number */
 PHP_FUNCTION(bcsqrt)
 {
        zend_string *left;
index 59eb4f2a8d16efb1bc10e7ddbb50e0aa4dc94fdb..507bdb4738bba5d35ebdc7fa9cca9dac46fb3277 100644 (file)
@@ -786,7 +786,7 @@ PHP_RSHUTDOWN_FUNCTION(date)
  *  Wdy, DD Mon YY HH:MM:SS TIMEZONE
  *  There is no hope of having a complete list of timezones.  Universal
  *  Time (GMT), the North American timezones (PST, PDT, MST, MDT, CST,
- *  CDT, EST, EDT) and the +/-hhmm offset specifed in RFC-822 should be supported.
+ *  CDT, EST, EDT) and the +/-hhmm offset specified in RFC-822 should be supported.
  */
 #define DATE_FORMAT_RFC1036  "D, d M y H:i:s O"
 
@@ -3935,7 +3935,7 @@ PHP_FUNCTION(timezone_name_get)
 /* }}} */
 
 /* {{{ proto string timezone_name_from_abbr(string abbr[, int gmtOffset[, int isdst]])
-   Returns the timezone name from abbrevation
+   Returns the timezone name from abbreviation
 */
 PHP_FUNCTION(timezone_name_from_abbr)
 {
index d0eb8f3203a202ddc7c8f9f73a52ccaa942b5c9e..7b51e2f9a77eaa73f57713dc9faaf1d4b279ae96 100644 (file)
@@ -3368,7 +3368,7 @@ static int exif_process_IFD_TAG(image_info_type *ImageInfo, char *dir_entry, cha
                                                ImageInfo->CopyrightPhotographer  = estrdup(value_ptr);
                                                ImageInfo->CopyrightEditor        = estrndup(value_ptr+length+1, byte_count-length-1);
                                                spprintf(&ImageInfo->Copyright, 0, "%s, %s", ImageInfo->CopyrightPhotographer, ImageInfo->CopyrightEditor);
-                                               /* format = TAG_FMT_UNDEFINED; this musn't be ASCII         */
+                                               /* format = TAG_FMT_UNDEFINED; this mustn't be ASCII         */
                                                /* but we are not supposed to change this                   */
                                                /* keep in mind that image_info does not store editor value */
                                        } else {
index 5565964c20f15ccb89598d6d27035ab2d4d102ef..9a7982041f74a28b299ebf6bdca5cbc4993b707b 100644 (file)
@@ -604,7 +604,7 @@ PHP_FUNCTION(finfo_file)
 /* }}} */
 
 /* {{{ proto string finfo_buffer(resource finfo, char *string [, int options [, resource context]])
-   Return infromation about a string buffer. */
+   Return information about a string buffer. */
 PHP_FUNCTION(finfo_buffer)
 {
        _php_finfo_get_type(INTERNAL_FUNCTION_PARAM_PASSTHRU, FILEINFO_MODE_BUFFER, 0);
index ccb1685d739a174257c13f65ee415685f0480f3e..0425faa4ae3fd1b0c2f341ce9e16cc706bf7b2f2 100644 (file)
@@ -178,7 +178,7 @@ function populate_mailbox($imap_stream, $mailbox, $message_count, $msg_type = "s
 }
 
 /**
- * Get the mailbox name from a mailbox decription, i.e strip off server details.
+ * Get the mailbox name from a mailbox description, i.e strip off server details.
  *
  * @param string mailbox complete mailbox name
  * @return mailbox name
index 19ad7893bdb33d1e020cdff393942ce9c099db75..12b14086349b284e8c427e22c85ddc4fc487ee3e 100644 (file)
@@ -6,7 +6,7 @@ $mailbox  = '{localhost/norsh}';
 $username = 'webmaster@something.com';
 $password = 'p4ssw0rd';
 $options = OP_HALFOPEN; // this should be enough to verify server present
-$retries = 0; // dont retry connect on failure
+$retries = 0; // don't retry connect on failure
 
 $mbox = @imap_open($mailbox, $username, $password, $options, $retries);
 if (!$mbox) {
index 37bf023f4df084e28b1125429c450e7310f266bc..c854f5bc9951f128e6f2f2195c624658bb98effb 100644 (file)
@@ -3,6 +3,6 @@
 if (!extension_loaded("interbase")) print "skip interbase extension not available";
 require("interbase.inc");
 if(!@ibase_connect($test_base)){
-        die("skip cannot connnect");
+        die("skip cannot connect");
 }
 ?>
index d710e1926a7a05f37b8d72f18aca85695e9d183b..f971f4d77af86a96a8738bb66c8bea72903ff225 100644 (file)
@@ -340,7 +340,7 @@ static zend_string* get_icu_value_internal( const char* loc_name , char* tag_nam
                                continue;
                        }
 
-                       /* Error in retriving data */
+                       /* Error in retrieving data */
                        *result = 0;
                        if( tag_value ){
                                zend_string_release_ex( tag_value, 0 );
@@ -1517,12 +1517,12 @@ static zend_string* lookup_loc_range(const char* loc_range, HashTable* hash_arr,
 /* }}} */
 
 /* {{{ proto string Locale::lookup(array $langtag, string $locale[, bool $canonicalize[, string $default = null]])
-* Searchs the items in $langtag for the best match to the language
+* Searches the items in $langtag for the best match to the language
 * range
 */
 /* }}} */
 /* {{{ proto string locale_lookup(array $langtag, string $locale[, bool $canonicalize[, string $default = null]])
-* Searchs the items in $langtag for the best match to the language
+* Searches the items in $langtag for the best match to the language
 * range
 */
 PHP_FUNCTION(locale_lookup)
index 7b6c07d2e38ba47620b16bdb896c8f237f78b2a7..bd89006b7d3301125f2ce6207241c762f604db55 100644 (file)
@@ -155,7 +155,7 @@ void mysqli_common_connect(INTERNAL_FUNCTION_PARAMETERS, zend_bool is_real_conne
 
                        mysql->hash_key = hash_key;
 
-                       /* check if we can reuse exisiting connection ... */
+                       /* check if we can reuse existing connection ... */
                        if ((le = zend_hash_find_ptr(&EG(persistent_list), hash_key)) != NULL) {
                                if (le->type == php_le_pmysqli()) {
                                        plist = (mysqli_plist_entry *) le->ptr;
index 106945ece77b8bcaf0c3451b4a3118a40535835e..ab2799745816bcc2e4e8920c48d2ad98472ee72f 100644 (file)
@@ -71,7 +71,7 @@ sb4 callback_fn(void *svchp, void *envhp, void *fo_ctx, ub4 fo_type, ub4 fo_even
                returnValue = (sb4) Z_LVAL(retval);
        }
 
-       /* Setting params[0] to null so ressource isn't destroyed on zval_dtor */
+       /* Setting params[0] to null so resource isn't destroyed on zval_dtor */
        ZVAL_NULL(&params[0]);
 
        /* Cleanup */
index c99862cd04166af060ce6cb89086aac9a0552039..429ce073ae58f0df254260d908e0812d208cb488 100644 (file)
@@ -2247,7 +2247,7 @@ PHP_FUNCTION(odbc_result)
                        efree(field);
                        RETURN_NULL();
                }
-               /* chop the trailing \0 by outputing only 4095 bytes */
+               /* chop the trailing \0 by outputting only 4095 bytes */
                PHPWRITE(field,(rc == SQL_SUCCESS_WITH_INFO) ? 4095 : result->values[field_ind].vallen);
 
                if (rc == SQL_SUCCESS) { /* no more data avail */
@@ -3043,7 +3043,7 @@ PHP_FUNCTION(odbc_errormsg)
    persistent connections. I think that SetStmtOption is of little use, since most
    of those can only be specified before preparing/executing statements.
    On the other hand, they can be made connection wide default through SetConnectOption
-   - but will be overidden by calls to SetStmtOption() in odbc_prepare/odbc_do
+   - but will be overridden by calls to SetStmtOption() in odbc_prepare/odbc_do
 */
 PHP_FUNCTION(odbc_setoption)
 {
@@ -3580,7 +3580,7 @@ PHP_FUNCTION(odbc_procedurecolumns)
 
 #if !defined(HAVE_SOLID) && !defined(HAVE_SOLID_30) && !defined(HAVE_SOLID_35)
 /* {{{ proto resource odbc_procedures(resource connection_id [, string qualifier, string owner, string name])
-   Returns a result identifier containg the list of procedure names in a datasource */
+   Returns a result identifier containing the list of procedure names in a datasource */
 PHP_FUNCTION(odbc_procedures)
 {
        zval *pv_conn;
index 58925975cadb4ca083cd67be0d30467b52c0b3fe..4d0e40984b62195cfecb2de01e4f88b539905cf7 100644 (file)
@@ -127,7 +127,7 @@ static inline zend_bool may_have_side_effects(
                        /* No side effects */
                        return 0;
                case ZEND_ROPE_END:
-                       /* TODO: Rope dce optmization, see #76446 */
+                       /* TODO: Rope dce optimization, see #76446 */
                        return 1;
                case ZEND_JMP:
                case ZEND_JMPZ:
index c9acb0498387cdc55f4091f6ef6d32141afe9f57..632a36782f8f62d3a7416b8783644cb22bd22c92 100644 (file)
@@ -2045,7 +2045,7 @@ static int try_remove_definition(sccp_ctx *ctx, int var_num, zend_ssa_var *var,
                if (ssa_op->result_def == var_num) {
                        if (ssa_op->op1_def >= 0
                                        || ssa_op->op2_def >= 0) {
-                               /* we cannot remove instruction that defines other varibales */
+                               /* we cannot remove instruction that defines other variables */
                                return 0;
                        } else if (opline->opcode == ZEND_JMPZ_EX
                                        || opline->opcode == ZEND_JMPNZ_EX
index c08f098ed80a51e51e3519e01110cbf62ab6e785..0d3334dc77156f0b211d3f238a68f3f15af2bac2 100644 (file)
@@ -1996,7 +1996,7 @@ zend_op_array *persistent_compile_file(zend_file_handle *file_handle, int type)
                ZCG(counted) = 1;
        }
 
-       /* Revalidate acessibility of cached file */
+       /* Revalidate accessibility of cached file */
        if (EXPECTED(persistent_script != NULL) &&
            UNEXPECTED(ZCG(accel_directives).validate_permission) &&
            file_handle->type == ZEND_HANDLE_FILENAME &&
index 5b613a43280572f462ff11975e650262887d30f8..e5054bd087a611fea18a287c13770284409ba833 100644 (file)
@@ -1055,7 +1055,7 @@ static int _php_pgsql_detect_identifier_escape(const char *identifier, size_t le
        if (len <= 2) {
                return FAILURE;
        }
-       /* Detect double qoutes */
+       /* Detect double quotes */
        if (identifier[0] == '"' && identifier[len-1] == '"') {
                size_t i;
 
index 0d575d2b853d36326d73de4ac4155df745055651..c6d93a392722860da8869746eb0fe3ad9557c561 100644 (file)
@@ -198,7 +198,7 @@ PHP_FUNCTION(pg_select);
 #define PGSQL_CONNECT_FORCE_NEW     (1<<1)
 #define PGSQL_CONNECT_ASYNC         (1<<2)
 /* php_pgsql_convert options */
-#define PGSQL_CONV_IGNORE_DEFAULT   (1<<1)     /* Do not use DEAFULT value by removing field from returned array */
+#define PGSQL_CONV_IGNORE_DEFAULT   (1<<1)     /* Do not use DEFAULT value by removing field from returned array */
 #define PGSQL_CONV_FORCE_NULL       (1<<2)     /* Convert to NULL if string is null string */
 #define PGSQL_CONV_IGNORE_NOT_NULL  (1<<3)     /* Ignore NOT NULL constraints */
 #define PGSQL_CONV_OPTS             (PGSQL_CONV_IGNORE_DEFAULT|PGSQL_CONV_FORCE_NULL|PGSQL_CONV_IGNORE_NOT_NULL)
index 9decdaf97238a5f769f75f4cd53318c1ae4193c0..07f1c34c9425bd31c46d05e22b0e02d68ef5e51d 100644 (file)
@@ -402,7 +402,7 @@ class PharCommand extends CLICommand
                $hash_avail = Phar::getSupportedSignatures();
                if ($arg && !in_array('OpenSSL', $hash_avail))
                {
-                       self::error("Cannot specifiy private key without OpenSSL support.\n");
+                       self::error("Cannot specify private key without OpenSSL support.\n");
                }
                return $arg;
        }
@@ -896,7 +896,7 @@ class PharCommand extends CLICommand
         *
         * @param string $pn
         * @param string $f     The file name
-        * @param array $args   The directory and Blen informations
+        * @param array $args   The directory and Blen information
         */
        public function phar_dir_extract($pn, $f, $args)
        {
@@ -936,7 +936,7 @@ class PharCommand extends CLICommand
        /**
         * The cli command argument for deleting.
         *
-        * @return array informations about the arguments to use.
+        * @return array information about the arguments to use.
         */
        static function cli_cmd_arg_delete()
        {
@@ -1103,7 +1103,7 @@ class PharCommand extends CLICommand
        /**
         * Cli Command Inf Compress
         *
-        * Cli Command compress informations
+        * Cli Command compress information
         *
         * @return string A description of the command.
         */
index 79bade6aaeff5e03582e5caf87e4bffa25ebe501..ddac6a4ade88dd1f468486caa08137a415c2ad77 100644 (file)
@@ -41,7 +41,7 @@ class corrupt_zipmaker
        var $offset = 0;
 
        /**
-       * @var string Optionnal comment to add to the zip
+       * @var string Optional comment to add to the zip
        * @access private
        */
        var $comment = "";
@@ -65,7 +65,7 @@ class corrupt_zipmaker
 
        /**
        * @param int $time Unix timestamp of the date to convert
-       * @return the date formated as a ZIP date
+       * @return the date formatted as a ZIP date
        */
        function getMTime($time)
        {
index 862936d81cba72bd8e6a1026b8071a5cc40f75a5..6f34cf29bf53aeafe70663a8092ccfaf76e70e22 100644 (file)
@@ -4336,7 +4336,7 @@ static int _adddynproperty(zval *ptr, int num_args, va_list args, zend_hash_key
        zval *retval = va_arg(args, zval*);
 
        /* under some circumstances, the properties hash table may contain numeric
-        * properties (e.g. when casting from array). This is a WONT FIX bug, at
+        * properties (e.g. when casting from array). This is a WON'T FIX bug, at
         * least for the moment. Ignore these */
        if (hash_key->key == NULL) {
                return 0;
index c46af0d87d778487e0f95b54fa7007fa20510551..00a353cfe14204ccd2ced5837fab3bb3f14bd413 100644 (file)
@@ -1940,7 +1940,7 @@ static PHP_FUNCTION(session_set_save_handler)
                        RETURN_FALSE;
                }
 
-               /* For compatibility reason, implemeted interface is not checked */
+               /* For compatibility reason, implemented interface is not checked */
                /* Find implemented methods - SessionHandlerInterface */
                i = 0;
                ZEND_HASH_FOREACH_STR_KEY(&php_session_iface_entry->function_table, func_name) {
index fc068bf4d14c471bb23007643606ade7582f5801..408afceef7b858b9ad82ee07e8efe23f26aaadcd 100644 (file)
@@ -1447,7 +1447,7 @@ static zend_string* get_http_body(php_stream *stream, int close, char *headers)
                                                ch = php_stream_getc(stream);
                                        }
                                        if (ch != '\n') {
-                                               /* Somthing wrong in chunked encoding */
+                                               /* Something wrong in chunked encoding */
                                                if (http_buf) {
                                                        zend_string_release_ex(http_buf, 0);
                                                }
@@ -1455,7 +1455,7 @@ static zend_string* get_http_body(php_stream *stream, int close, char *headers)
                                        }
                                }
                        } else {
-                               /* Somthing wrong in chunked encoding */
+                               /* Something wrong in chunked encoding */
                                if (http_buf) {
                                        zend_string_release_ex(http_buf, 0);
                                }
index 12df011ecc8b927d929654e15602be9809435d4d..c0e31a04ac192e2b562d6fa9f98f8a0160aff789 100644 (file)
@@ -33,7 +33,7 @@ class MultipleIterator implements Iterator
        /** keys are created from sub iterators position */
        const MIT_KEYS_NUMERIC  = 0;
 
-       /** keys are created from sub iterators associated infromation */
+       /** keys are created from sub iterators associated information */
        const MIT_KEYS_ASSOC  = 2;
 
        /** Construct a new empty MultipleIterator
index 2059b97c1c69de4fe048bb60393aaac58dc917d2..07dbce3def559c6cb1288618edb8cdc264541e1c 100644 (file)
@@ -17,7 +17,7 @@
  *
  * Passes the RecursiveIterator interface to the inner Iterator and provides
  * the same functionality as FilterIterator. This allows you to skip parents
- * and all their childs before loading them all. You need to care about
+ * and all their children before loading them all. You need to care about
  * function getChildren() because it may not always suit your needs. The
  * builtin behavior uses reflection to return a new instance of the exact same
  * class it is called from. That is you extend RecursiveFilterIterator and
@@ -25,7 +25,7 @@
  * this does not transport any state or control information of your accept()
  * implementation to the new instance. To overcome this problem you might
  * need to overwrite getChildren(), call this implementation and pass the
- * control vaules manually.
+ * control values manually.
  */
 class RecursiveArrayIterator extends ArrayIterator implements RecursiveIterator
 {
index 3ae127ad94b600b6408b46f9201864d54a69f821..1473b754573eb3580b473858db229992fcd717b3 100644 (file)
@@ -27,7 +27,7 @@ class RecursiveCachingIterator extends CachingIterator implements RecursiveItera
         * @param it    Iterator to cache
         * @param flags Bitmask:
         *              - CALL_TOSTRING   (whether to call __toString() for every element)
-        *              - CATCH_GET_CHILD (whether to catch exceptions when trying to get childs)
+        *              - CATCH_GET_CHILD (whether to catch exceptions when trying to get children)
         */
        function __construct(RecursiveIterator $it, $flags = self::CALL_TOSTRING)
        {
index 87d98da8852e3cf9946e55be5ef42d9144fef1b6..9d176112ba768a20059ecce6f35d1b197b1ac07f 100644 (file)
@@ -17,7 +17,7 @@
  *
  * Passes the RecursiveIterator interface to the inner Iterator and provides
  * the same functionality as FilterIterator. This allows you to skip parents
- * and all their childs before loading them all. You need to care about
+ * and all their children before loading them all. You need to care about
  * function getChildren() because it may not always suit your needs. The
  * builtin behavior uses reflection to return a new instance of the exact same
  * class it is called from. That is you extend RecursiveFilterIterator and
@@ -25,7 +25,7 @@
  * this does not transport any state or control information of your accept()
  * implementation to the new instance. To overcome this problem you might
  * need to overwrite getChildren(), call this implementation and pass the
- * control vaules manually.
+ * control values manually.
  */
 abstract class RecursiveFilterIterator extends FilterIterator implements RecursiveIterator
 {
index c22a92bf716d23fe6489dfe88545c70d5fadff0e..529c01b07604a7355eb97574e735555202122e3f 100644 (file)
@@ -42,7 +42,7 @@ class RecursiveIteratorIterator implements OuterIterator
         * @param it     RecursiveIterator to iterate
         * @param mode   Operation mode (one of):
         *               - LEAVES_ONLY only show leaves
-        *               - SELF_FIRST  show parents prior to their childs
+        *               - SELF_FIRST  show parents prior to their children
         *               - CHILD_FIRST show all children prior to their parent
         * @param flags  Control flags, zero or any combination of the following
         *               (since PHP 5.1).
index 4b0c757b816d4efbf475587b68bdacfb9114af24..fea3d0cf61c58c5175a2b73118b569705f0eac08 100644 (file)
@@ -17,7 +17,7 @@
  */
 class SplFileObject extends SplFileInfo implements RecursiveIterator, SeekableIterator
 {
-       /** Flag: wheter to suppress new lines */
+       /** Flag: whether to suppress new lines */
        const DROP_NEW_LINE   = 0x00000001;
 
        private $fp;
index f27da4e0014cafbd292804516599dd9e18cab3a5..6b9b25f661009831cb2b71cad627c8049a2275e6 100644 (file)
@@ -146,7 +146,7 @@ class SplObjectStorage implements Iterator, Countable, ArrayAccess
                $this->attach($obj, $inf);
        }
 
-       /** @param $obj Exising object to look for
+       /** @param $obj Existing object to look for
         * @return associative information stored with object
         * @throw UnexpectedValueException if Object $obj is not contained in
         *                                 storage
@@ -167,7 +167,7 @@ class SplObjectStorage implements Iterator, Countable, ArrayAccess
                throw new UnexpectedValueException('Object not found');
        }
 
-       /** @param $obj Exising object to look for
+       /** @param $obj Existing object to look for
         * @return associative information stored with object
         * @since 5.3.0
         */
index 0263a132b155345c828971dd876b21c2ba9087bf..c80adaed9440481354059570380871e8c5853eda 100644 (file)
@@ -387,7 +387,7 @@ static void autoload_func_info_dtor(zval *element)
 }
 
 /* {{{ proto void spl_autoload_call(string class_name)
- Try all registerd autoload function to load the requested class */
+ Try all registered autoload function to load the requested class */
 PHP_FUNCTION(spl_autoload_call)
 {
        zval *class_name, retval;
index 8a68613417f4144d749340b2406449bdcfbfa2ef..adbcef6e8a17c6ea8d3f805379ca0dd2b7a49f71 100755 (executable)
 function spl_autoload(string $class_name, string $file_extensions = NULL) {/**/};
 
 /** @ingroup SPL
- * @brief Manual invocation of all registerd autoload functions
+ * @brief Manual invocation of all registered autoload functions
  * @since PHP 5.1
  *
  * @param class_name        name of class to load
@@ -371,7 +371,7 @@ class BadMethodCallException extends BadFunctionCallException
  * @brief Exception that denotes a value not in the valid domain was used.
  * @since PHP 5.1
  *
- * This kind of exception should be used to inform about domain erors in
+ * This kind of exception should be used to inform about domain errors in
  * mathematical sense.
  *
  * @see RangeException
@@ -731,7 +731,7 @@ class ArrayObject implements IteratorAggregate, ArrayAccess, Countable
  * over Arrays and Objects.
  *
  * When you want to iterate over the same array multiple times you need to
- * instanciate ArrayObject and let it create ArrayIterator instances that
+ * instantiate ArrayObject and let it create ArrayIterator instances that
  * refer to it either by using foreach or by calling its getIterator()
  * method manually.
  */
index 776f2ae44da24a2038030f5a3e3f93be1f61b766..e37bd87d87dd9797318f3b98dbd23813773635d6 100644 (file)
@@ -724,7 +724,7 @@ void spl_filesystem_object_construct(INTERNAL_FUNCTION_PARAMETERS, zend_long cto
 
        intern = Z_SPLFILESYSTEM_P(getThis());
        if (intern->_path) {
-               /* object is alreay initialized */
+               /* object is already initialized */
                zend_restore_error_handling(&error_handling);
                php_error_docref(NULL, E_WARNING, "Directory object is already initialized");
                return;
index a6e27f47b66e82bc76b2ae200056f5798902ba2d..0dd755e07f7f4a0469ab89b76514477cb044e51d 100644 (file)
@@ -318,7 +318,7 @@ static HashTable* spl_object_storage_debug_info(zval *obj, int *is_temp) /* {{{
 }
 /* }}} */
 
-/* overriden for garbage collection */
+/* overridden for garbage collection */
 static HashTable *spl_object_storage_get_gc(zval *obj, zval **table, int *n) /* {{{ */
 {
        int i = 0;
index 6c508e30df853548bbbe5fa0a38c221124a2c982..fe6303eff389179415c13bdb9c87205b6a4e4d2b 100644 (file)
@@ -433,7 +433,7 @@ if test "$PHP_PASSWORD_ARGON2" != "no"; then
     LIBS="$LIBS -largon2"
     AC_DEFINE(HAVE_ARGON2LIB, 1, [ Define to 1 if you have the <argon2.h> header file ])
   ], [
-    AC_MSG_ERROR([Problem with libargon2.(a|so). Please verify that Argon2 header and libaries >= 20161029 are installed])
+    AC_MSG_ERROR([Problem with libargon2.(a|so). Please verify that Argon2 header and libraries >= 20161029 are installed])
   ])
 fi
 
index fc982a7591c22699ef26efd095c53f12975b634d..07c4ba261038d074d23b3b73b75c72a47eaaeb29 100644 (file)
@@ -1,7 +1,7 @@
 /*
                       DO NOT EDIT THIS FILE!
 
- it has been automaticaly created by php7/scripts/credits from
+ it has been automatically created by php7/scripts/credits from
  the information found in the various php7/ext/.../CREDITS and
  php7/sapi/.../CREDITS files
 
index 471724f70f85e9f72182fcb36724159309c32dd7..d5f5b81b2103b1b9ee33f9c49175f1ef2046d04e 100644 (file)
@@ -1,7 +1,7 @@
 /*
                       DO NOT EDIT THIS FILE!
 
- it has been automaticaly created by php7/scripts/credits from
+ it has been automatically created by php7/scripts/credits from
  the information found in the various php7/ext/.../CREDITS and
  php7/sapi/.../CREDITS files
 
index 3304c643080e720864568db9e352644b1478b280..ef2234dba7b8b1af995b12fda89533b55a53ef63 100644 (file)
@@ -1593,7 +1593,7 @@ PHP_NAMED_FUNCTION(php_if_fstat)
 #ifdef HAVE_STRUCT_STAT_ST_RDEV
 # ifdef PHP_WIN32
        /* It is unsigned, so if a negative came from userspace, it'll
-          convert to UINT_MAX, but we wan't to keep the userspace value.
+          convert to UINT_MAX, but we want to keep the userspace value.
           Almost the same as in php_fstat. This is ugly, but otherwise
           we would have to maintain a fully compatible struct stat. */
        if ((int)stat_ssb.sb.st_rdev < 0) {
index 5819d537538207a89c5195e6382632fd07597c2f..220b593bfda58504b64c0a0752a97469176ecd0b 100644 (file)
@@ -926,7 +926,7 @@ PHPAPI void php_stat(const char *filename, size_t filename_length, int type, zva
 #ifdef HAVE_STRUCT_STAT_ST_RDEV
 # ifdef PHP_WIN32
        /* It is unsigned, so if a negative came from userspace, it'll
-          convert to UINT_MAX, but we wan't to keep the userspace value.
+          convert to UINT_MAX, but we want to keep the userspace value.
           Almost the same as in php_if_fstat. */
        if ((int)stat_sb->st_rdev < 0) {
                ZVAL_LONG(&stat_rdev, (int)stat_sb->st_rdev);
index 0a8add7e993d22e3d37073721883d80666635230..425d210ba6f5a6c22b3c9dce6ff012a4a0e8182b 100644 (file)
@@ -980,7 +980,7 @@ static int php_get_wbmp(php_stream *stream, struct gfxinfo **result, int check)
                        return 0;
                }
                height = (height << 7) | (i & 0x7f);
-        /* maximum valid heigth for wbmp (although 127 may be a more accurate one) */
+        /* maximum valid height for wbmp (although 127 may be a more accurate one) */
         if (height > 2048) {
             return 0;
         }
index bc9931359db5395f0523801c2ebe7b9ba37e0262..d825137368b6937b54a7436ebc0651245090d994 100644 (file)
@@ -45,7 +45,7 @@
 TODO:
 - Create php_readlink (done), php_link (done) and php_symlink (done) in win32/link.c
 - Expose them (PHPAPI) so extensions developers can use them
-- define link/readlink/symlink to their php_ equivalent and use them in ext/standart/link.c
+- define link/readlink/symlink to their php_ equivalent and use them in ext/standard/link.c
 - this file is then useless and we have a portable link API
 */
 
index 9b7bcdbd60a5ac4fae91054c4800e17fb7d4cd15..442091ad46c6861c6610b9cf469b297e9c749cf8 100644 (file)
@@ -337,7 +337,7 @@ PHP_FUNCTION(stream_socket_get_name)
 }
 /* }}} */
 
-/* {{{ proto int stream_socket_sendto(resouce stream, string data [, int flags [, string target_addr]])
+/* {{{ proto int stream_socket_sendto(resource stream, string data [, int flags [, string target_addr]])
    Send data to a socket stream.  If target_addr is specified it must be in dotted quad (or [ipv6]) format */
 PHP_FUNCTION(stream_socket_sendto)
 {
index a0b62bffc70f3c984c8408ee66c482ee491bc1dc..eda2b32c78a84b520cbefb176c58d8f152bd3a8b 100644 (file)
@@ -218,7 +218,7 @@ function change_file_perms($file_path,
      If imporper $content type is specified, file is created as empty
    $size = size of the fill in terms of kilobyte, i.e size of the file.
            if $flag is specified as "byte", then then given size is taken in bytes
-   $flag = specifiy if size has to be treated as no of total bytes or
+   $flag = specify if size has to be treated as no of total bytes or
            multiple of KB.
      "kilobytes" = take size in terms of multiple of KB
      "byte" = take size in terms of bytes
index 2197a1f8c175bdbfbbe6b5cf280597c88531ed43..8d7a8a9a1cc625726e21183980632059fd3cbc6c 100644 (file)
@@ -132,7 +132,7 @@ function populate_mailbox($imap_stream, $mailbox, $message_count, $msg_type = "s
 }
 
 /**
- * Get the mailbox name from a mailbox decription, i.e strip off server details.
+ * Get the mailbox name from a mailbox description, i.e strip off server details.
  *
  * @param string mailbox complete mailbox name
  * @return mailbox name
index 8da04b072a425b1fd4fb8cfc3becc615a5195b18..fedcfbbe4e4a26e15343f60c517baa7fa9191383 100644 (file)
@@ -16,7 +16,7 @@ $mailbox  = '{localhost}';
 $username = 'webmaster@example.com';
 $password = 'p4ssw0rd';
 $options = OP_HALFOPEN; // this should be enough to verify server present
-$retries = 0; // dont retry connect on failure
+$retries = 0; // don't retry connect on failure
 
 $mbox = imap_open($mailbox, $username, $password, $options, $retries);
 if (!$mbox) {
index 09a7d3a280792698c27f95cf353a5fd2c3025972..c4c3e90f535783b7c37d3fced36e62a8bebe3cd7 100644 (file)
@@ -1917,7 +1917,7 @@ static ZIPARCHIVE_METHOD(statName)
 /* }}} */
 
 /* {{{ proto resource ZipArchive::statIndex(int index[, int flags])
-Returns the zip entry informations using its index */
+Returns the zip entry information using its index */
 static ZIPARCHIVE_METHOD(statIndex)
 {
        struct zip *intern;
@@ -2713,7 +2713,7 @@ static ZIPARCHIVE_METHOD(unchangeArchive)
 /* {{{ proto bool ZipArchive::extractTo(string pathto[, mixed files])
 Extract one or more file from a zip archive */
 /* TODO:
- * - allow index or array of indeces
+ * - allow index or array of indices
  * - replace path
  * - patterns
  */
index 70e5736e567a5a73d61512bb62fd7e119140a6ff..e4ae28d87bb46e7861ef19f3408892b4407111e9 100644 (file)
@@ -2279,7 +2279,7 @@ int php_module_startup(sapi_module_struct *sf, zend_module_entry *additional_mod
 
 #ifdef ZEND_WIN32
        /* Until the current ini values was setup, the current cp is 65001.
-               If the actual ini vaues are different, some stuff needs to be updated.
+               If the actual ini values are different, some stuff needs to be updated.
                It concerns at least main_cwd_state and there might be more. As we're
                still in the startup phase, lets use the chance and reinit the relevant
                item according to the current codepage. Still, if ini_set() is used
index 3e8b6fe77e158386f14ecacd87e1e0d02c4bd8eb..0d194ccbb2c20c63818aa752e4fc06f7ae3b2314 100644 (file)
@@ -132,7 +132,7 @@ static void reverse_conflict_dtor(zval *zv)
 }
 
 /* {{{ void php_output_startup(void)
- * Set up module globals and initalize the conflict and reverse conflict hash tables */
+ * Set up module globals and initialize the conflict and reverse conflict hash tables */
 PHPAPI void php_output_startup(void)
 {
        ZEND_INIT_MODULE_GLOBALS(output, php_output_init_globals, NULL);
index 9dd27e662a09911179c3a2ae93d82f3efb188a48..d5c5dfa8070cbf07b0b670bd2280b6a7beac779e 100644 (file)
@@ -44,7 +44,7 @@ spprintf is the dynamical version of snprintf. It allocates the buffer in size
          as needed and allows a maximum setting as snprintf (turn this feature
          off by setting max_len to 0). spprintf is a little bit slower than
          snprintf and offers possible memory leakes if you miss freeing the
-         buffer allocated by the function. Therfore this function should be
+         buffer allocated by the function. Therefore this function should be
          used where either no maximum is known or the maximum is much bigger
          than normal size required. spprintf always terminates the buffer.
 
index 09714249b85c7ff8eed9acc53a1f73eedc5a4249..c24db9e751bdebadabadcc5af389bf7617f478b1 100644 (file)
@@ -21,7 +21,7 @@
 
 /* The filter API works on the principle of "Bucket-Brigades".  This is
  * partially inspired by the Apache 2 method of doing things, although
- * it is intentially a light-weight implementation.
+ * it is intentionally a light-weight implementation.
  *
  * Each stream can have a chain of filters for reading and another for writing.
  *
index 554f014a25ede3ecd3d7a9a4e5cd69b6539058a5..38d905d26846152fb3ab865907d72ce1fe6485fb 100644 (file)
@@ -758,7 +758,7 @@ Options:
                 filenames to generate with <tdir>. If --html is being used and
                 <url> given then the generated links are relative and prefixed
                 with the given url. In general you want to make <sdir> the path
-                to your source files and <tdir> some pach in your web page
+                to your source files and <tdir> some patch in your web page
                 hierarchy with <url> pointing to <tdir>.
 
     --keep-[all|php|skip|clean]
index 71ed2fd98d4e33db7b2e5407e5c9ba429538c344..4041f9378999b68feff0c9346a7a9897e2a727ea 100644 (file)
@@ -183,7 +183,7 @@ typedef struct _php_cgi_globals_struct {
  * Key for each cache entry is dirname(PATH_TRANSLATED).
  *
  * NOTE: Each cache entry config_hash contains the combination from all user ini files found in
- *       the path starting from doc_root throught to dirname(PATH_TRANSLATED).  There is no point
+ *       the path starting from doc_root through to dirname(PATH_TRANSLATED).  There is no point
  *       storing per-file entries as it would not be possible to detect added / deleted entries
  *       between separate files.
  */
index e3f73bf1267231a5f996267b820d4af86fe61873..b68047be8c4e19009b32680ca3df11e7c8bc5a3f 100644 (file)
@@ -166,7 +166,7 @@ static int fpm_event_devpoll_wait(struct fpm_event_queue_s *queue, unsigned long
                }
        }
 
-       /* iterate throught triggered events */
+       /* iterate through triggered events */
        for (i = 0; i < ret; i++) {
 
                /* find the corresponding event */
@@ -200,7 +200,7 @@ static int fpm_event_devpoll_add(struct fpm_event_s *ev) /* {{{ */
 {
        struct pollfd pollfd;
 
-       /* fill pollfd with event informations */
+       /* fill pollfd with event information */
        pollfd.fd = ev->fd;
        pollfd.events = POLLIN;
        pollfd.revents = 0;
@@ -225,7 +225,7 @@ static int fpm_event_devpoll_remove(struct fpm_event_s *ev) /* {{{ */
 {
        struct pollfd pollfd;
 
-       /* fill pollfd with the same informations as fpm_event_devpoll_add */
+       /* fill pollfd with the same information as fpm_event_devpoll_add */
        pollfd.fd = ev->fd;
        pollfd.events = POLLIN | POLLREMOVE;
        pollfd.revents = 0;
index 505f71d9d5bdf60e04e20fc7ff7001ef05e23ff4..b4ff48ed2993b1fdba2308c3cadee8a6a542b26b 100644 (file)
@@ -192,7 +192,7 @@ void fpm_children_bury() /* {{{ */
                        snprintf(buf, sizeof(buf), "with code %d", WEXITSTATUS(status));
 
                        /* if it's been killed because of dynamic process management
-                        * don't restart it automaticaly
+                        * don't restart it automatically
                         */
                        if (child && child->idle_kill) {
                                restart_child = 0;
@@ -213,7 +213,7 @@ void fpm_children_bury() /* {{{ */
                        snprintf(buf, sizeof(buf), "on signal %d (%s%s)", WTERMSIG(status), signame, have_core);
 
                        /* if it's been killed because of dynamic process management
-                        * don't restart it automaticaly
+                        * don't restart it automatically
                         */
                        if (child && child->idle_kill && WTERMSIG(status) == SIGQUIT) {
                                restart_child = 0;
index fd594607e1f29fdb0cd2f13bd6ee11d5d236e876..640d3eccbe371faf65ce9309d5ecbc0ac376c004 100644 (file)
@@ -162,7 +162,7 @@ typedef struct _php_cgi_globals_struct {
  * Key for each cache entry is dirname(PATH_TRANSLATED).
  *
  * NOTE: Each cache entry config_hash contains the combination from all user ini files found in
- *       the path starting from doc_root throught to dirname(PATH_TRANSLATED).  There is no point
+ *       the path starting from doc_root through to dirname(PATH_TRANSLATED).  There is no point
  *       storing per-file entries as it would not be possible to detect added / deleted entries
  *       between separate files.
  */
index 9dfdb0f91eba93e194433113ad1e66cc5e46e0bb..89346164e70a3913292e1e01e619e78669ad9f14 100644 (file)
@@ -25,7 +25,7 @@
 static const char *requests_stages[] = {
        [FPM_REQUEST_ACCEPTING]       = "Idle",
        [FPM_REQUEST_READING_HEADERS] = "Reading headers",
-       [FPM_REQUEST_INFO]            = "Getting request informations",
+       [FPM_REQUEST_INFO]            = "Getting request information",
        [FPM_REQUEST_EXECUTING]       = "Running",
        [FPM_REQUEST_END]             = "Ending",
        [FPM_REQUEST_FINISHED]        = "Finishing",
index 71bdad17b952394fa455e5a095dc4054fd72857b..29b7b20c0a9d1838e601137425862aac08b2d0ce 100644 (file)
@@ -428,7 +428,7 @@ class Client
     }
 
     /**
-     * Get Informations on the FastCGI application
+     * Get Information on the FastCGI application
      *
      * @param array $requestedInfo information to retrieve
      * @return array
index 4753bc11a18afa2b78d9e475148ff1bf3644f13a..fcbb495cc26affe0587cba692432b0be7c2dd0cb 100644 (file)
@@ -65,7 +65,7 @@
 /* Key for each cache entry is dirname(PATH_TRANSLATED).
  *
  * NOTE: Each cache entry config_hash contains the combination from all user ini files found in
- *       the path starting from doc_root throught to dirname(PATH_TRANSLATED).  There is no point
+ *       the path starting from doc_root through to dirname(PATH_TRANSLATED).  There is no point
  *       storing per-file entries as it would not be possible to detect added / deleted entries
  *       between separate files.
  */
index 0054e90ceac62870bcaa656417ed73c65a72061f..ac04717f0d8b50ba56114faa7e324a40a75468b7 100644 (file)
@@ -645,7 +645,7 @@ PHPDBG_API const phpdbg_command_t *phpdbg_stack_resolve(const phpdbg_command_t *
                        }
 
                        /* ", " separated matches */
-                       phpdbg_error("command", "type=\"ambiguous\" command=\"%s\" matches=\"%lu\" matched=\"%s\"", "The command \"%s\" is ambigious, matching %lu commands (%s)", name->str, matches, list);
+                       phpdbg_error("command", "type=\"ambiguous\" command=\"%s\" matches=\"%lu\" matched=\"%s\"", "The command \"%s\" is ambiguous, matching %lu commands (%s)", name->str, matches, list);
                        efree(list);
 
                        return NULL;
index e9caa18895dbf1be8e0c1e3ca6e6b9656ab4eb61..e0575009db0990e82e85749a5da6f54a21109126 100644 (file)
@@ -924,7 +924,7 @@ phpdbg_help_text_t phpdbg_help_text[] = {
 "     Enable refcount display when hitting watchpoints" CR CR
 
 "     $P S b 4 off" CR
-"     Temporarily disable breakpoint 4.  This can be subsequently reenabled by a **S b 4 on**." CR
+"     Temporarily disable breakpoint 4.  This can be subsequently re-enabled by a **S b 4 on**." CR
 //*********** check oplog syntax
 },
 
index f406810ab94bcd3d9e1712ec2b00a6a8bce3acdd..8815b90be21d9b291bbae095f8ec1ee78e65ff15 100644 (file)
@@ -81,7 +81,7 @@ const phpdbg_command_t phpdbg_prompt_commands[] = {
        PHPDBG_COMMAND_D(back,      "show trace",                               't', NULL, "|n", PHPDBG_ASYNC_SAFE),
        PHPDBG_COMMAND_D(frame,     "switch to a frame",                        'f', NULL, "|n", PHPDBG_ASYNC_SAFE),
        PHPDBG_COMMAND_D(list,      "lists some code",                          'l', phpdbg_list_commands,  "*", PHPDBG_ASYNC_SAFE),
-       PHPDBG_COMMAND_D(info,      "displays some informations",               'i', phpdbg_info_commands, "|s", PHPDBG_ASYNC_SAFE),
+       PHPDBG_COMMAND_D(info,      "displays some information",               'i', phpdbg_info_commands, "|s", PHPDBG_ASYNC_SAFE),
        PHPDBG_COMMAND_D(clean,     "clean the execution environment",          'X', NULL, 0, 0),
        PHPDBG_COMMAND_D(clear,     "clear breakpoints",                        'C', NULL, 0, 0),
        PHPDBG_COMMAND_D(help,      "show help menu",                           'h', phpdbg_help_commands, "|s", PHPDBG_ASYNC_SAFE),
index 1d7f33ff6f2a25f360cde0258c65daf7896153f4..488c0a3f07026b2aa34d08e609089039b799ed47 100644 (file)
@@ -31,7 +31,7 @@
  * Watch elements are either simple, recursive or implicit (PHPDBG_WATCH_* flags)
  * Simple means that a particular watchpoint was explicitly defined
  * Recursive watch elements are created recursively (recursive root flag is to distinguish the root element easily from its children recursive elements)
- * Implicit  watch elements are implicitely created on all ancestors of simple or recursive watch elements
+ * Implicit  watch elements are implicitly created on all ancestors of simple or recursive watch elements
  * Recursive and (simple or implicit) watch elements are mutually exclusive
  * Array/Object to distinguish watch elements on arrays
  *
index 56dcaaa1f7194d0ca50ee927e21cb78a72c5d7e2..8e16754db08ceafab65c24498545bd47c95c8753 100644 (file)
@@ -633,7 +633,7 @@ Other tags
 - &lt;watchhit variable="" />: when ever a watched variable is changed, followed by a &lt;watchdata> container
 - &lt;watchdata> may contain
  - for watchpoints on variables:
-  - each of these &lt;watch*> tags conatins a type attribute whose value is either "old" or "new")
+  - each of these &lt;watch*> tags contains a type attribute whose value is either "old" or "new")
   - &lt;watchvalue type="" inaccessible="inaccessible" />: old value is inaccessible
   - &lt;watchvalue type=""> may contain a &lt;stream> element which indicates the old/new (type attribute) value of the variable
   - &lt;watchrefcount type="" refcount="" isref="" />: old/new (type attribute) refcount and isref, both numbers
index 0683f59882d5cca1a8f3d1d2c705ba88149092e8..df94e08aeaacb0572465679fb45f5c3659242323 100755 (executable)
@@ -10,7 +10,7 @@ do
 /*
                       DO NOT EDIT THIS FILE!
 
- it has been automaticaly created by php7/scripts/credits from
+ it has been automatically created by php7/scripts/credits from
  the information found in the various php7/ext/.../CREDITS and
  php7/sapi/.../CREDITS files
 
index 5f38e2f22e4ec5ab0b9d6b87d95c55010309dda4..ef05ab16d9a072a91ae1541b3588f3b4f1fb47d8 100755 (executable)
@@ -1171,7 +1171,7 @@ class testHarness {
                        $this->showstatus($section_text['TEST'], 'SKIPPED', 'CGI Test needs CGI Binary');
                        return "SKIPPED";
                }
-               // if we're doing web testing, then we wont be able to set
+               // if we're doing web testing, then we won't be able to set
                // ini setting on the command line.  be sure the executables
                // ini settings are compatible with the test, or skip
                if (($docgi || $this->conf['TEST_WEB']) &&
index fe95d9bcc3361f89cc3829a19d133d6c195519eb..d852884d52bc0708956cce3ccd3d8e4c962910de 100644 (file)
@@ -1,5 +1,5 @@
 --TEST--
-ZE2 An abstract class cannot be instanciated
+ZE2 An abstract class cannot be instantiated
 --FILE--
 <?php
 
index 2059103bc5aa0d93a228270e75b559ba9d63d85f..88ad916bb49bb0355742d68d66c7185aa3cd0322 100644 (file)
@@ -12,7 +12,7 @@ abstract class base {
 class test extends base {
   public $b = 'test';
 
-  // reenable cloning
+  // re-enable cloning
   public function __clone() {}
 
   public function show() {
index 78d4efb32f4dcdba1c77b347c2cc27264b8bd300..638772dd7cfe3cce33060b3a3ff522817453b3c5 100644 (file)
@@ -6,7 +6,7 @@ ZE2 A derived class can use the inherited constructor/destructor
 // This test checks for:
 // - inherited constructors/destructors are not called automatically
 // - base classes know about derived properties in constructor/destructor
-// - base class constructors/destructors know the instanciated class name
+// - base class constructors/destructors know the instantiated class name
 
 class base {
        public $name;
index 8d324e5d6193bae046eaf411bfef99fe0e69443d..a3b1f0cb5e6e5c47e384b22a5c619ef0c207a6a7 100644 (file)
@@ -25,7 +25,7 @@ var_dump($hello);
 ob_end_flush();
 
 
-echo "\ncheck that we dont have a reference\n";
+echo "\ncheck that we don't have a reference\n";
 ob_start();
 echo "Hello World\n";
 $hello2 = ob_get_contents();
@@ -58,7 +58,7 @@ Hello World
 string(12) "Hello World
 "
 
-check that we dont have a reference
+check that we don't have a reference
 Hello World
 string(12) "Hello World
 "
index 509dc605c92b9cb8f11b5e020081beb288d5048b..166e44a935a5d0b5d4326de56296dbd95b095b17 100644 (file)
@@ -5,7 +5,7 @@
  *  has been removed (MIME and file attachments).  This code was
  *  modified from code based on code written by Jarle Aase.
  *
- *  This class is based on the original code by Jarle Aase, see bellow:
+ *  This class is based on the original code by Jarle Aase, see below:
  *  wSendmail.cpp  It has been striped of some functionality to match
  *  the requirements of phpfi.
  *
@@ -48,7 +48,7 @@
 
 /* '*error_message' has to be passed around from php_mail() */
 #define SMTP_ERROR_RESPONSE_SPEC       "SMTP server response: %s"
-/* Convinient way to handle error messages from the SMTP server.
+/* Convenient way to handle error messages from the SMTP server.
    response is ecalloc()d in Ack() itself and efree()d here
    because the content is in *error_message now */
 #define SMTP_ERROR_RESPONSE(response)  { \