]> granicus.if.org Git - php/commitdiff
Fix some misspellings
authorGabriel Caruso <carusogabriel34@gmail.com>
Mon, 5 Feb 2018 00:16:50 +0000 (22:16 -0200)
committerChristoph M. Becker <cmbecker69@gmx.de>
Tue, 6 Feb 2018 15:59:00 +0000 (16:59 +0100)
47 files changed:
Zend/tests/bug66811.phpt
Zend/tests/bug70958.phpt
Zend/tests/get_defined_vars.phpt
Zend/tests/list_self_assign.phpt
Zend/tests/traits/bug65576a.phpt
Zend/tests/traits/bug65576b.phpt
Zend/tests/traits/bug75607.phpt
Zend/tests/traits/bug75607a.phpt
Zend/zend_API.h
Zend/zend_compile.c
ext/dom/characterdata.c
ext/fileinfo/tests/magic
ext/fileinfo/tests/magic私はガラスを食べられます
ext/ftp/ftp.c
ext/gd/libgd/gd_bmp.c
ext/mbstring/libmbfl/filters/mbfilter_sjis_mobile.c
ext/mbstring/tests/mb_language.phpt
ext/odbc/tests/bug47803.phpt
ext/opcache/Optimizer/optimize_func_calls.c
ext/opcache/Optimizer/zend_inference.c
ext/opcache/ZendAccelerator.c
ext/openssl/tests/openssl_encrypt_error.phpt
ext/openssl/tests/openssl_error_string_basic.phpt
ext/pdo_mysql/tests/bug_50323.phpt
ext/session/session.c
ext/sockets/tests/socket_send.phpt
ext/sockets/tests/socket_send_win32.phpt
ext/spl/spl_observer.c
ext/standard/string.c
ext/standard/tests/array/in_array_variation4.phpt
ext/standard/tests/mail/mail_basic6.phpt
ext/standard/tests/math/rand_inverted_order.phpt
ext/standard/tests/strings/trim1.phpt
ext/standard/tests/strings/vprintf_basic7.phpt
ext/standard/tests/strings/vprintf_basic7_64bit.phpt
ext/standard/tests/strings/vsprintf_basic7.phpt
ext/standard/tests/strings/vsprintf_basic7_64bit.phpt
ext/standard/url_scanner_ex.c
ext/standard/url_scanner_ex.re
ext/wddx/tests/bug73793.phpt
sapi/cgi/cgi_main.c
sapi/cli/php_cli.c
sapi/fpm/fpm/fpm_main.c
sapi/phpdbg/phpdbg_watch.c
scripts/dev/find_tested.php
win32/codepage.c
win32/sendmail.c

index 6409ceb4ab6720218d51341f0f1480b655ad1df2..339e0a226c1b388adfe496a2bb98d6ac521a4afb 100644 (file)
@@ -1,5 +1,5 @@
 --TEST--
-Bug #66811: Cannot access static::class in lambda, writen outside of a class
+Bug #66811: Cannot access static::class in lambda, written outside of a class
 --FILE--
 <?php
 class A {
index b00d7aea817e025f53bbb3fab949ef31fc69b9a2..faa75e0b16b63888f0e9d49d837b23084bf71832 100644 (file)
@@ -1,5 +1,5 @@
 --TEST--
-Bug #70958 (Invalid opcode while using ::class as trait method paramater default value)
+Bug #70958 (Invalid opcode while using ::class as trait method parameter default value)
 --FILE--
 <?php
 trait Foo
index 81aa97a455d673bf522bc6f3e805f17275f6b654..199afd0b5035b402839dab87447e92868f9c9573 100644 (file)
@@ -3,7 +3,7 @@ Testing get_defined_vars() Function
 --FILE--
 <?php
 /* Prototype: array get_defined_vars(void);
- * Description: Returns a  multidimentional array of all defined variables.
+ * Description: Returns a  multidimensional array of all defined variables.
  */
 
 /* Various variables definitions used for testing of the function */
index 4640912696a64d5303c5b1c23424a235df43b18d..33993c50ca4b4504d1b23444467aa5bbd3c08ebc 100644 (file)
@@ -1,5 +1,5 @@
 --TEST--
-Test variable occuring on both LHS and RHS of list()
+Test variable occurring on both LHS and RHS of list()
 --FILE--
 <?php
 
index 49b2ba0c9646ea05ee8a338dc1dee04fbfe213a5..d5a86578ab0d2b720ff9a95d4263c7ff8620e8c4 100644 (file)
@@ -7,7 +7,7 @@ trait T
 {
   public function __construct()
   {
-    echo "Trait contructor\n";
+    echo "Trait constructor\n";
   }
 }
 
@@ -27,5 +27,5 @@ class B extends A
 new B();
 
 --EXPECT--
-Trait contructor
+Trait constructor
 
index 3be52ba7c98a6437610b1da93fe5e8e04279e923..857c582d80478d1ff5df37792328a2ce24c2e8a7 100644 (file)
@@ -8,7 +8,7 @@ trait T
   public function __construct()
   {
     parent::__construct();
-    echo "Trait contructor\n";
+    echo "Trait constructor\n";
   }
 }
 
@@ -29,5 +29,5 @@ new B();
 
 --EXPECT--
 Parent constructor
-Trait contructor
+Trait constructor
 
index a3a10425f4bc95e61bd952176363ff1a7c1cdb5b..e466e6333b9e69f8e3528417db1c4834c65418e5 100644 (file)
@@ -1,5 +1,5 @@
 --TEST--
-Bug #75607 (Comparision of initial static properties failing)
+Bug #75607 (Comparison of initial static properties failing)
 --FILE--
 <?php
 
index 9f5f03521e840ec11e941f9ea0e095127678fd39..acf59186b65ed4bbdd8bae62defdaa4192b318eb 100644 (file)
@@ -1,5 +1,5 @@
 --TEST--
-Bug #75607 (Comparision of initial static properties failing)
+Bug #75607 (Comparison of initial static properties failing)
 --FILE--
 <?php
 
index a3e7baa772e830daf66ba1d6039324aa947809d3..1db7aef5ae35aacebc3b9eb8eb1eb2f9ce065a3f 100644 (file)
@@ -419,7 +419,7 @@ ZEND_API int add_assoc_zval_ex(zval *arg, const char *key, size_t key_len, zval
 #define add_assoc_stringl(__arg, __key, __str, __length) add_assoc_stringl_ex(__arg, __key, strlen(__key), __str, __length)
 #define add_assoc_zval(__arg, __key, __value) add_assoc_zval_ex(__arg, __key, strlen(__key), __value)
 
-/* unset() functions are only suported for legacy modules and null() functions should be used */
+/* unset() functions are only supported for legacy modules and null() functions should be used */
 #define add_assoc_unset(__arg, __key) add_assoc_null_ex(__arg, __key, strlen(__key))
 #define add_index_unset(__arg, __key) add_index_null(__arg, __key)
 #define add_next_index_unset(__arg) add_next_index_null(__arg)
index 7ee810d1e73fd1a0d0f89524eed7ad59a870b3d6..9c8fe3f4d7e466afe6f0a1037f4ae46b40390c82 100644 (file)
@@ -5378,7 +5378,7 @@ static int zend_declare_is_first_statement(zend_ast *ast) /* {{{ */
        uint32_t i = 0;
        zend_ast_list *file_ast = zend_ast_get_list(CG(ast));
 
-       /* Check to see if this declare is preceeded only by declare statements */
+       /* Check to see if this declare is preceded only by declare statements */
        while (i < file_ast->children) {
                if (file_ast->child[i] == ast) {
                        return SUCCESS;
@@ -5386,7 +5386,7 @@ static int zend_declare_is_first_statement(zend_ast *ast) /* {{{ */
                        /* Empty statements are not allowed prior to a declare */
                        return FAILURE;
                } else if (file_ast->child[i]->kind != ZEND_AST_DECLARE) {
-                       /* declares can only be preceeded by other declares */
+                       /* declares can only be preceded by other declares */
                        return FAILURE;
                }
                i++;
@@ -5719,7 +5719,7 @@ void zend_compile_params(zend_ast *ast, zend_ast *return_type_ast) /* {{{ */
                }
        }
 
-       /* These are assigned at the end to avoid unitialized memory in case of an error */
+       /* These are assigned at the end to avoid uninitialized memory in case of an error */
        op_array->num_args = list->children;
        op_array->arg_info = arg_infos;
 
index f7873b92d9a629068455180d74a17a2cc78af3c3..671f4033eec9d4428114068f233921414a1f01ce 100644 (file)
@@ -213,7 +213,7 @@ PHP_FUNCTION(dom_characterdata_append_data)
 
        DOM_GET_OBJ(nodep, id, xmlNodePtr, intern);
 #if LIBXML_VERSION < 20627
-/* Implement logic from libxml xmlTextConcat to add suport for comments and PI */
+/* Implement logic from libxml xmlTextConcat to add support for comments and PI */
     if ((nodep->content == (xmlChar *) &(nodep->properties)) ||
         ((nodep->doc != NULL) && (nodep->doc->dict != NULL) &&
                xmlDictOwns(nodep->doc->dict, nodep->content))) {
index 1e465506c7205c80fddaa9d5e219e3336d9849ba..30ab7760a8513821debb770be21b850f561d72fa 100644 (file)
 >>>>>>>>>>>>>8         uleshort        >0              \b, at offset %d
 >>>>>>>>>>>>>(8.s+1)   ubyte           >0
 >>>>>>>>>>>>>>&-1      string          >\0             1st record "%s"
-# for multiple index files (*.MDX) Production flag,tag numbers(<=0x30),tag length(<=0x20), reserverd (NULL)
+# for multiple index files (*.MDX) Production flag,tag numbers(<=0x30),tag length(<=0x20), reserved (NULL)
 >>>>>>>24      ubelong&0x0133f7ff      >0
 # test for reserved NULL byte
 >>>>>>>>47     ubyte                   0
index 1e465506c7205c80fddaa9d5e219e3336d9849ba..30ab7760a8513821debb770be21b850f561d72fa 100644 (file)
 >>>>>>>>>>>>>8         uleshort        >0              \b, at offset %d
 >>>>>>>>>>>>>(8.s+1)   ubyte           >0
 >>>>>>>>>>>>>>&-1      string          >\0             1st record "%s"
-# for multiple index files (*.MDX) Production flag,tag numbers(<=0x30),tag length(<=0x20), reserverd (NULL)
+# for multiple index files (*.MDX) Production flag,tag numbers(<=0x30),tag length(<=0x20), reserved (NULL)
 >>>>>>>24      ubelong&0x0133f7ff      >0
 # test for reserved NULL byte
 >>>>>>>>47     ubyte                   0
index 32d7338333325d7b243ada7dbd662ba8d76b2f74..4339c9d18f2b5637e0edc3ca4552bdb22616cecd 100644 (file)
@@ -1803,7 +1803,7 @@ data_accepted:
        if (ftp->use_ssl && ftp->use_ssl_for_data) {
                ctx = SSL_get_SSL_CTX(ftp->ssl_handle);
                if (ctx == NULL) {
-                       php_error_docref(NULL, E_WARNING, "data_accept: failed to retreive the existing SSL context");
+                       php_error_docref(NULL, E_WARNING, "data_accept: failed to retrieve the existing SSL context");
                        return 0;
                }
 
@@ -1822,7 +1822,7 @@ data_accepted:
                /* get the session from the control connection so we can re-use it */
                session = SSL_get_session(ftp->ssl_handle);
                if (session == NULL) {
-                       php_error_docref(NULL, E_WARNING, "data_accept: failed to retreive the existing SSL session");
+                       php_error_docref(NULL, E_WARNING, "data_accept: failed to retrieve the existing SSL session");
                        SSL_free(data->ssl_handle);
                        return 0;
                }
index 8af8751299c8de1a01caa7325f29ce71b1be5455..e1f70174f453d1a3402139e9b9f81e74bd61f15c 100644 (file)
@@ -708,7 +708,7 @@ static int bmp_read_direct(gdImagePtr im, gdIOCtxPtr infile, bmp_info_t *info, b
                return 1;
        }
 
-       /* There is a chance the data isn't until later, would be wierd but it is possible */
+       /* There is a chance the data isn't until later, would be weird but it is possible */
        if (gdTell(infile) != header->off) {
                /* Should make sure we don't seek past the file size */
                if (!gdSeek(infile, header->off)) {
@@ -805,7 +805,7 @@ static int bmp_read_1bit(gdImagePtr im, gdIOCtxPtr infile, bmp_info_t *info, bmp
 
        im->colorsTotal = info->numcolors;
 
-       /* There is a chance the data isn't until later, would be wierd but it is possible */
+       /* There is a chance the data isn't until later, would be weird but it is possible */
        if (gdTell(infile) != header->off) {
                /* Should make sure we don't seek past the file size */
                if (!gdSeek(infile, header->off)) {
@@ -875,7 +875,7 @@ static int bmp_read_4bit(gdImagePtr im, gdIOCtxPtr infile, bmp_info_t *info, bmp
 
        im->colorsTotal = info->numcolors;
 
-       /* There is a chance the data isn't until later, would be wierd but it is possible */
+       /* There is a chance the data isn't until later, would be weird but it is possible */
        if (gdTell(infile) != header->off) {
                /* Should make sure we don't seek past the file size */
                if (!gdSeek(infile, header->off)) {
@@ -962,7 +962,7 @@ static int bmp_read_8bit(gdImagePtr im, gdIOCtxPtr infile, bmp_info_t *info, bmp
 
        im->colorsTotal = info->numcolors;
 
-       /* There is a chance the data isn't until later, would be wierd but it is possible */
+       /* There is a chance the data isn't until later, would be weird but it is possible */
        if (gdTell(infile) != header->off) {
                /* Should make sure we don't seek past the file size */
                if (!gdSeek(infile, header->off)) {
index ca3d437dfa46f143ab7c92e8db51481a5e6fe548..c7acf21409712aa05b8ee10da4f69fe08af738ad 100644 (file)
@@ -297,7 +297,7 @@ mbfilter_sjis_emoji_docomo2unicode(int s, int *snd)
                        w = mb_tbl_code2uni_docomo1[s - mb_tbl_code2uni_docomo1_min];
                        if (w > 0xf000) {
                                w += 0x10000;
-                       } else if (w > 0xe000) { /* unsuported by Unicode 6.0 */
+                       } else if (w > 0xe000) { /* unsupported by Unicode 6.0 */
                                w += 0xf0000;
                        }
                        *snd = 0;
@@ -332,7 +332,7 @@ mbfilter_sjis_emoji_kddi2unicode(int s, int *snd)
                        w = mb_tbl_code2uni_kddi1[si];
                        if (w > 0xf000) {
                                w += 0x10000;
-                       } else if (w > 0xe000) { /* unsuported by Unicode 6.0 */
+                       } else if (w > 0xe000) { /* unsupported by Unicode 6.0 */
                                w += 0xf0000;
                        }
                }
@@ -350,7 +350,7 @@ mbfilter_sjis_emoji_kddi2unicode(int s, int *snd)
                        w = mb_tbl_code2uni_kddi2[si];
                        if (w > 0xf000) {
                                w += 0x10000;
-                       } else if (w > 0xe000) { /* unsuported by Unicode 6.0 */
+                       } else if (w > 0xe000) { /* unsupported by Unicode 6.0 */
                                w += 0xf0000;
                        }
                }
@@ -377,7 +377,7 @@ mbfilter_sjis_emoji_sb2unicode(int s, int *snd)
                        w = mb_tbl_code2uni_sb1[si];
                        if (w > 0xf000) {
                                w += 0x10000;
-                       } else if (w > 0xe000) { /* unsuported by Unicode 6.0 */
+                       } else if (w > 0xe000) { /* unsupported by Unicode 6.0 */
                                w += 0xf0000;
                        }
                }
@@ -386,7 +386,7 @@ mbfilter_sjis_emoji_sb2unicode(int s, int *snd)
                w = mb_tbl_code2uni_sb2[si];
                if (w > 0xf000) {
                        w += 0x10000;
-               } else if (w > 0xe000) { /* unsuported by Unicode 6.0 */
+               } else if (w > 0xe000) { /* unsupported by Unicode 6.0 */
                        w += 0xf0000;
                }
        } else if (s >= mb_tbl_code2uni_sb3_min && s <= mb_tbl_code2uni_sb3_max) {
@@ -398,7 +398,7 @@ mbfilter_sjis_emoji_sb2unicode(int s, int *snd)
                        w = mb_tbl_code2uni_sb3[si];
                        if (w > 0xf000) {
                                w += 0x10000;
-                       } else if (w > 0xe000) { /* unsuported by Unicode 6.0 */
+                       } else if (w > 0xe000) { /* unsupported by Unicode 6.0 */
                                w += 0xf0000;
                        }
                }
index d3f5bb2c288bdeda4b38274684fc0c0eab2bb785..0b8bcff28c6d221654974bc42d84d026cd87bb05 100644 (file)
@@ -19,7 +19,7 @@ var_dump(mb_language('English'));
 echo "Confirm language was changed:\n";
 var_dump(mb_language());
 
-echo "Try changing to a non-existant language:\n";
+echo "Try changing to a non-existent language:\n";
 var_dump(mb_language('Pig Latin'));
 var_dump(mb_language());
 ?>
@@ -32,7 +32,7 @@ Changing language to English should be successful:
 bool(true)
 Confirm language was changed:
 string(7) "English"
-Try changing to a non-existant language:
+Try changing to a non-existent language:
 
 Warning: mb_language(): Unknown language "Pig Latin" in %s on line %d
 bool(false)
index 9a2600dd18d68cd3731eaa8bdfb664c8fca70bc2..ec023a5c8709b379212a998f10c7d99740bba282 100644 (file)
@@ -1,5 +1,5 @@
 --TEST--
-Bug #47803 Executing prepared statements is succesfull only for the first two statements
+Bug #47803 Executing prepared statements is successful only for the first two statements
 --SKIPIF--
 <?php include 'skipif.inc'; ?>
 --FILE--
index 1642994765ae835068e2a96ff139fa700975e824..4b48b73bee52994f49770c409eca2cec6871c58a 100644 (file)
@@ -120,7 +120,7 @@ static void zend_try_inline_call(zend_op_array *op_array, zend_op *fcall, zend_o
                        }
 
                        if (fcall->extended_value < func->op_array.num_args) {
-                               /* don't inline funcions with named constants in default arguments */
+                               /* don't inline functions with named constants in default arguments */
                                i = fcall->extended_value;
 
                                do {
index d01f4df44673b43eef298e6f0ab85b1a9be8817e..e43a646abd41dc2ffed38023c8fd2a1046b4ca0c 100644 (file)
@@ -2799,7 +2799,7 @@ static int zend_update_type_info(const zend_op_array *op_array,
                                        (tmp & func_info->arg_info[opline->op1.num-1].info.type);
                        }
 #if 0
-                       /* We won't recieve unused arguments */
+                       /* We won't receive unused arguments */
                        if (ssa_vars[ssa_ops[i].result_def].use_chain < 0 &&
                            ssa_vars[ssa_ops[i].result_def].phi_use_chain == NULL &&
                            op_array->arg_info &&
index aa84b318c3848a6d30318cec830c80d51a9d8679..1c870e908d5ecd2cb2ab8e41513dfa05f653a07c 100644 (file)
@@ -2801,7 +2801,7 @@ static int accel_post_startup(void)
 
                /* from this point further, shared memory is supposed to be OK */
 
-               /* remeber the last restart time in the process memory */
+               /* remember the last restart time in the process memory */
                ZCG(last_restart_time) = ZCSG(last_restart_time);
 
                /* Init auto-global strings */
index ea69ad9ee2eff136a89692be1eaa4e1928dd4f6c..ea39bff604cf220c5057c5a434cd3612b1160228 100644 (file)
@@ -12,7 +12,7 @@ $wrong = "wrong";
 $object = new stdclass;
 $arr = array(1);
 
-// wrong paramters tests
+// wrong parameters tests
 var_dump(openssl_encrypt($data, $wrong, $password));
 var_dump(openssl_encrypt($object, $method, $password));
 var_dump(openssl_encrypt($data, $object, $password));
index 04cc5508a4af4f6b212f10e7340baad4f52babc6..9293a704d207e321879ea3cb394ba0e83e33c8da 100644 (file)
@@ -90,7 +90,7 @@ expect_openssl_errors('openssl_pkey_export_to_file pem', ['0906D06C']);
 // file to export cannot be written
 @openssl_pkey_export_to_file($private_key_file, $invalid_file_for_write);
 expect_openssl_errors('openssl_pkey_export_to_file write', ['2006D002']);
-// succesful export
+// successful export
 @openssl_pkey_export($private_key_file_with_pass, $out, 'wrong pwd');
 expect_openssl_errors('openssl_pkey_export', ['06065064', '0906A065']);
 // invalid x509 for getting public key
index 02050fac5d2035c513a24a08b80859fc380b4439..5455c664c00af951ea12efd018e5d17cb9a99b29 100644 (file)
@@ -18,7 +18,7 @@ $db = PDOTest::test_factory(dirname(__FILE__) . '/common.phpt');
                 strpos($original, ':') + 1,
                 strlen($original));
 
-        // no real parser - any excotic setting can fool us
+        // no real parser - any exotic setting can fool us
         $parts = explode(';', $dsn);
         foreach ($parts as $k => $v) {
             $tmp = explode('=', $v);
@@ -44,7 +44,7 @@ if (1 === @$db->exec('CREATE DATABASE `crazy;dbname`')) {
     $dsn = changeDSN(getenv('PDOTEST_DSN'), array('dbname' => 'crazy;;dbname'));
     $user = getenv('PDOTEST_USER');
     $pass = getenv('PDOTEST_PASS');
-    
+
     new PDO($dsn, $user, $pass);
 }
 echo 'done!';
@@ -58,4 +58,3 @@ $db = PDOTest::test_factory(dirname(__FILE__) . '/common.phpt');
 ?>
 --EXPECTF--
 done!
-
index 7d0665a901a32b473190b003b5746807d9825de7..4e5985e7ad377ea6ea9ad1ac02e1ec88026575ed 100644 (file)
@@ -1434,7 +1434,7 @@ PHPAPI int php_session_reset_id(void) /* {{{ */
        }
 
        /* If the SID constant exists, destroy it. */
-       /* We must not delete any items in EG(zend_contants) */
+       /* We must not delete any items in EG(zend_constants) */
        /* zend_hash_str_del(EG(zend_constants), "sid", sizeof("sid") - 1); */
        sid = zend_get_constant_str("SID", sizeof("SID") - 1);
 
index 4093ad47cfdfa6fd75d965d67f381796689b148d..969a79eb2af6a13dbc4b1e23f89845f5d59569f1 100644 (file)
@@ -17,24 +17,24 @@ if(substr(PHP_OS, 0, 3) == 'WIN' ) {
 $port = 80;
 $host = "yahoo.com";
 $stringSocket = "send_socket_to_connected_socket";
-$stringSocketLenght = strlen($stringSocket);
+$stringSocketLength = strlen($stringSocket);
 
 $socket = socket_create(AF_INET, SOCK_STREAM, SOL_TCP);
 $socketConn = socket_connect($socket, $host, $port);
 
-if(socket_send($socket, $stringSocket, $stringSocketLenght, MSG_OOB)===$stringSocketLenght){
+if(socket_send($socket, $stringSocket, $stringSocketLength, MSG_OOB)===$stringSocketLength){
   print("okey\n");
 }
 
-if(socket_send($socket, $stringSocket, $stringSocketLenght, MSG_EOR)===$stringSocketLenght){
+if(socket_send($socket, $stringSocket, $stringSocketLength, MSG_EOR)===$stringSocketLength){
   print("okey\n");
 }
 
-if(socket_send($socket, $stringSocket, $stringSocketLenght, MSG_EOF)===$stringSocketLenght){
+if(socket_send($socket, $stringSocket, $stringSocketLength, MSG_EOF)===$stringSocketLength){
   print("okey\n");
 }
 
-if(socket_send($socket, $stringSocket, $stringSocketLenght, MSG_DONTROUTE)===$stringSocketLenght){
+if(socket_send($socket, $stringSocket, $stringSocketLength, MSG_DONTROUTE)===$stringSocketLength){
   print("okey\n");
 }
 ?>
@@ -43,7 +43,7 @@ socket_close($socket);
 unset($port);
 unset($host);
 unset($stringSocket);
-unset($stringSocketLenght);
+unset($stringSocketLength);
 unset($socket);
 unset($socketConn);
 ?>
index 04a985c781ad5034485e1af0c696ef17de2607da..0f2311b98420adf59aae082ab42fbaceed65ccd4 100644 (file)
@@ -16,16 +16,16 @@ if(substr(PHP_OS, 0, 3) != 'WIN' ) {
 $port = 80;
 $host = "yahoo.com";
 $stringSocket = "send_socket_to_connected_socket";
-$stringSocketLenght = strlen($stringSocket);
+$stringSocketLength = strlen($stringSocket);
 
 $socket = socket_create(AF_INET, SOCK_STREAM, SOL_TCP);
 $socketConn = socket_connect($socket, $host, $port);
 
-if(socket_send($socket, $stringSocket, $stringSocketLenght, MSG_OOB)===$stringSocketLenght){
+if(socket_send($socket, $stringSocket, $stringSocketLength, MSG_OOB)===$stringSocketLength){
   print("okey\n");
 }
 
-if(socket_send($socket, $stringSocket, $stringSocketLenght, MSG_DONTROUTE)===$stringSocketLenght){
+if(socket_send($socket, $stringSocket, $stringSocketLength, MSG_DONTROUTE)===$stringSocketLength){
   print("okey\n");
 }
 ?>
@@ -34,7 +34,7 @@ socket_close($socket);
 unset($port);
 unset($host);
 unset($stringSocket);
-unset($stringSocketLenght);
+unset($stringSocketLength);
 unset($socket);
 unset($socketConn);
 ?>
index dd9fa72e7f23cb438c5a2da07d0383182549efb0..96fc3a10479a9ea547caff05f301878a9a8ae985 100644 (file)
@@ -90,7 +90,7 @@ typedef struct _spl_SplObjectStorage { /* {{{ */
        zend_object       std;
 } spl_SplObjectStorage; /* }}} */
 
-/* {{{ storage is an assoc aray of [zend_object*]=>[zval *obj, zval *inf] */
+/* {{{ storage is an assoc array of [zend_object*]=>[zval *obj, zval *inf] */
 typedef struct _spl_SplObjectStorageElement {
        zval obj;
        zval inf;
index caaee8c1da106756885c342c896626ebe569c547..a515283cecd76e3ea0f4f69509f14aeb816d809a 100644 (file)
@@ -1653,7 +1653,7 @@ PHP_FUNCTION(dirname)
        ret = zend_string_init(str, str_len, 0);
 
        if (levels == 1) {
-               /* Defaut case */
+               /* Default case */
 #ifdef PHP_WIN32
                ZSTR_LEN(ret) = php_win32_ioutil_dirname(ZSTR_VAL(ret), str_len);
 #else
index 9a5312b26877b3c67f285f8d129f8a22e01d9edf..789dbd69237a54dd22e196a57d10941287bef5de 100644 (file)
@@ -9,7 +9,7 @@ Test in_array() function : usage variations - haystack as resource/multi dimensi
  * Source Code: ext/standard/array.c
 */
 
-/* Test in_array() with haystack as resouce and multidimentional arrays */
+/* Test in_array() with haystack as resouce and multidimensional arrays */
 
 /* checking for Resources */
 echo "*** Testing resource type with in_array() ***\n";
index d0d45b78f3dea7aff95d47ad1d5dd20c1bdbc12c..01d315ae0623225ef3073a5aebdd8187c8bd9c6f 100644 (file)
@@ -59,7 +59,7 @@ echo @file_get_contents($outFile);
 $additional_headers = "\nHEAD1: a\nHEAD2: b\n";
 @unlink($outFile);
 
-echo "-- Invalid Header - preceeding newline--\n";
+echo "-- Invalid Header - preceding newline--\n";
 // Calling mail() with all additional headers
 var_dump( mail($to, $subject, $message, $additional_headers) );
 echo @file_get_contents($outFile);
@@ -69,7 +69,7 @@ echo @file_get_contents($outFile);
 $additional_headers = "\rHEAD1: a\nHEAD2: b\r";
 @unlink($outFile);
 
-echo "-- Invalid Header - preceeding newline--\n";
+echo "-- Invalid Header - preceding newline--\n";
 // Calling mail() with all additional headers
 var_dump( mail($to, $subject, $message, $additional_headers) );
 echo @file_get_contents($outFile);
@@ -79,7 +79,7 @@ echo @file_get_contents($outFile);
 $additional_headers = "\r\nHEAD1: a\r\nHEAD2: b\r\n";
 @unlink($outFile);
 
-echo "-- Invalid Header - preceeding newline--\n";
+echo "-- Invalid Header - preceding newline--\n";
 // Calling mail() with all additional headers
 var_dump( mail($to, $subject, $message, $additional_headers) );
 echo @file_get_contents($outFile);
@@ -89,7 +89,7 @@ echo @file_get_contents($outFile);
 $additional_headers = "\r\n\r\nHEAD1: a\r\nHEAD2: b\r\n";
 @unlink($outFile);
 
-echo "-- Invalid Header - preceeding newline--\n";
+echo "-- Invalid Header - preceding newline--\n";
 // Calling mail() with all additional headers
 var_dump( mail($to, $subject, $message, $additional_headers) );
 echo @file_get_contents($outFile);
@@ -99,7 +99,7 @@ echo @file_get_contents($outFile);
 $additional_headers = "\n\nHEAD1: a\r\nHEAD2: b\r\n";
 @unlink($outFile);
 
-echo "-- Invalid Header - preceeding newline--\n";
+echo "-- Invalid Header - preceding newline--\n";
 // Calling mail() with all additional headers
 var_dump( mail($to, $subject, $message, $additional_headers) );
 echo @file_get_contents($outFile);
@@ -109,7 +109,7 @@ echo @file_get_contents($outFile);
 $additional_headers = "\r\rHEAD1: a\r\nHEAD2: b\r\n";
 @unlink($outFile);
 
-echo "-- Invalid Header - preceeding newline--\n";
+echo "-- Invalid Header - preceding newline--\n";
 // Calling mail() with all additional headers
 var_dump( mail($to, $subject, $message, $additional_headers) );
 echo @file_get_contents($outFile);
@@ -246,27 +246,27 @@ Subject: Test Subject
 HEAD1: a\rHEAD2: b
 
 A Message
--- Invalid Header - preceeding newline--
+-- Invalid Header - preceding newline--
 
 Warning: mail(): Multiple or malformed newlines found in additional_header in %s/mail_basic6.php on line %d
 bool(false)
--- Invalid Header - preceeding newline--
+-- Invalid Header - preceding newline--
 
 Warning: mail(): Multiple or malformed newlines found in additional_header in %s/mail_basic6.php on line %d
 bool(false)
--- Invalid Header - preceeding newline--
+-- Invalid Header - preceding newline--
 
 Warning: mail(): Multiple or malformed newlines found in additional_header in %s/mail_basic6.php on line %d
 bool(false)
--- Invalid Header - preceeding newline--
+-- Invalid Header - preceding newline--
 
 Warning: mail(): Multiple or malformed newlines found in additional_header in %s/mail_basic6.php on line %d
 bool(false)
--- Invalid Header - preceeding newline--
+-- Invalid Header - preceding newline--
 
 Warning: mail(): Multiple or malformed newlines found in additional_header in %s/mail_basic6.php on line %d
 bool(false)
--- Invalid Header - preceeding newline--
+-- Invalid Header - preceding newline--
 
 Warning: mail(): Multiple or malformed newlines found in additional_header in %s/mail_basic6.php on line %d
 bool(false)
index 4c2fc96b54b0387ae873166c89d0a9e7e63b8cf7..f3af4c02195ff38cfe1733b403516b71fae96f0b 100644 (file)
@@ -1,5 +1,5 @@
 --TEST--
-Test rand funtion when min and max are in proper or inverted order
+Test rand function when min and max are in proper or inverted order
 --CREDITS--
 PHP TestFEst 2017 - PHPDublin, PHPSP - Joao P V Martins <jp.joao@gmail.com>
 --FILE--
index dd52efd98e4e3e599f8ae9d7cc2d297d8c62908c..2096b61f22c2b0e5def92daf340851c687be9da0 100644 (file)
Binary files a/ext/standard/tests/strings/trim1.phpt and b/ext/standard/tests/strings/trim1.phpt differ
index fdf90fd47e9e5a1f52722e5705ade4856c2b165e..7633e08f5116dc7a08c81169724c0175d8daabb3 100644 (file)
@@ -6,8 +6,8 @@ if (PHP_INT_SIZE != 4) die("skip this test is for 32bit platform only");
 ?>
 --FILE--
 <?php
-/* Prototype  : string vprintf(string $format , aaray $args)
- * Description: Output a formatted string 
+/* Prototype  : string vprintf(string $format , array $args)
+ * Description: Output a formatted string
  * Source code: ext/standard/formatted_print.c
 */
 
index 32aa338897f310c1e8978ca49da008145c0f029a..ac8a5f0dc574294dabc6c34807dc3698fda1ed28 100644 (file)
@@ -6,8 +6,8 @@ if (PHP_INT_SIZE != 8) die("skip this test is for 64bit platform only");
 ?>
 --FILE--
 <?php
-/* Prototype  : string vprintf(string $format , aaray $args)
- * Description: Output a formatted string 
+/* Prototype  : string vprintf(string $format , array $args)
+ * Description: Output a formatted string
  * Source code: ext/standard/formatted_print.c
 */
 
index daf514391bce58fc5bebe4e7c641211e06b104e1..c477a20ee783b1bcde78a0fe4afbe867125cb787 100644 (file)
@@ -6,8 +6,8 @@ if (PHP_INT_SIZE != 4) die("skip this test is for 32bit platform only");
 ?>
 --FILE--
 <?php
-/* Prototype  : string vsprintf(string $format , aaray $args)
- * Description: Return a formatted string 
+/* Prototype  : string vsprintf(string $format , array $args)
+ * Description: Return a formatted string
  * Source code: ext/standard/formatted_print.c
 */
 
index 022919ec73f2db50a0be85ffeb833f73cd896063..ce26d246d30feba45d878901dbf7e9eff42c76ee 100644 (file)
@@ -6,8 +6,8 @@ if (PHP_INT_SIZE != 8) die("skip this test is for 64bit platform only");
 ?>
 --FILE--
 <?php
-/* Prototype  : string vsprintf(string $format , aaray $args)
- * Description: Return a formatted string 
+/* Prototype  : string vsprintf(string $format , array $args)
+ * Description: Return a formatted string
  * Source code: ext/standard/formatted_print.c
 */
 
index b4eab1957936ecc2fecd7e4b16dce909d0e427d7..2601087658fb5e85e4b8d77e7158cd6e64cb636f 100644 (file)
@@ -1319,7 +1319,7 @@ static inline int php_url_scanner_reset_var_impl(zend_string *name, int encode,
                php_url_scanner_reset_vars_impl(type);
                goto finish;
        }
-       /* Check preceeding separator */
+       /* Check preceding separator */
        if (!sep_removed
                && (size_t)(start - PG(arg_separator).output) >= separator_len
                && !memcmp(start - separator_len, PG(arg_separator).output, separator_len)) {
index ab9779c49b0dab33f3f7d1f2f856ca5e747c8052..d21004f3cef0d0a5ec877f5f083f46e29e763f9c 100644 (file)
@@ -904,7 +904,7 @@ static inline int php_url_scanner_reset_var_impl(zend_string *name, int encode,
                php_url_scanner_reset_vars_impl(type);
                goto finish;
        }
-       /* Check preceeding separator */
+       /* Check preceding separator */
        if (!sep_removed
                && (size_t)(start - PG(arg_separator).output) >= separator_len
                && !memcmp(start - separator_len, PG(arg_separator).output, separator_len)) {
index fed4b3525f5609f471a330f255ec8f16c50364c8..d677a34c5b56cfa347062bc42e2eb54e39c26445 100644 (file)
@@ -1,5 +1,5 @@
 --TEST--
-Bug #73793 (WDDX uses wrong decimal seperator)
+Bug #73793 (WDDX uses wrong decimal separator)
 --SKIPIF--
 <?php
 if (!extension_loaded('wddx')) print 'skip wddx extension not available';
index 264881267de6a32a1fe0f5fbd501904d4b331d7e..b5e7999c3ce9b7a9c6fea039825b9ea45ca33814 100644 (file)
@@ -1196,7 +1196,7 @@ static void init_request_info(fcgi_request *request)
        /* script_path_translated being set is a good indication that
         * we are running in a cgi environment, since it is always
         * null otherwise.  otherwise, the filename
-        * of the script will be retreived later via argc/argv */
+        * of the script will be retrieved later via argc/argv */
        if (script_path_translated) {
                const char *auth;
                char *content_length = CGI_GETENV("CONTENT_LENGTH");
index f124c8a1f83f3be89d9f07eccf5b045da580fc3e..27335a21990519077dde605884c84579f262d23a 100644 (file)
@@ -917,7 +917,7 @@ static int do_cli(int argc, char **argv) /* {{{ */
 #if defined(PHP_WIN32) && !defined(PHP_CLI_WIN32_NO_CONSOLE) && (HAVE_LIBREADLINE || HAVE_LIBEDIT) && !defined(COMPILE_DL_READLINE)
                if (!interactive) {
                /* The -a option was not passed. If there is no file, it could
-                       still make sense to run interactively. The presense of a file
+                       still make sense to run interactively. The presence of a file
                        is essential to mitigate buggy console info. */
                        interactive = php_win32_console_is_own() &&
                                !(script_file ||
index 2632f2aa58a3da14da68bca32573605771491624..022a7809c7f33fc3fb419c3e58278b3522c8c408 100644 (file)
@@ -1047,7 +1047,7 @@ static void init_request_info(void)
        /* script_path_translated being set is a good indication that
         * we are running in a cgi environment, since it is always
         * null otherwise.  otherwise, the filename
-        * of the script will be retreived later via argc/argv */
+        * of the script will be retrieved later via argc/argv */
        if (script_path_translated) {
                const char *auth;
                char *content_length = FCGI_GETENV(request, "CONTENT_LENGTH");
index 7eddf1b0521fa23bf534d6f1ee63e30e21f01dcf..1d7f33ff6f2a25f360cde0258c65daf7896153f4 100644 (file)
@@ -29,7 +29,7 @@
  * WATCH_ON_HASHDATA: special watchpoint to watch for HT_GET_DATA_ADDR(ht) being efree()'d to be able to properly relocate Bucket watches
  *
  * Watch elements are either simple, recursive or implicit (PHPDBG_WATCH_* flags)
- * Simple means that a particular watchpoint was explicitely defined
+ * 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
  * Recursive and (simple or implicit) watch elements are mutually exclusive
index 0881e9ea471831761ee22994daf2a62a19c17335..4e1e2a3bb4f34792bf2b9d48964c963554e6997d 100644 (file)
@@ -69,7 +69,7 @@ get_phpt_files($extension_test_path, $count, $phpt_files);
 $extension_method_info = mark_methods_as_tested($extension_method_info, $phpt_files);
 
 /**
- * The loop to ouput the test coverage info
+ * The loop to output the test coverage info
  * Should output: Extension, Class Name, Method/Function Name, Test Status, Test Files
  */ 
 foreach($extension_method_info as $record) {
index 773df129d237828b06fdf6701cf7c96849801207..74e33230976c80beda47c1e4202567808d09ff82 100644 (file)
@@ -156,7 +156,7 @@ PW32CP wchar_t *php_win32_cp_conv_ascii_to_w(const char* in, size_t in_len, size
 
        /* Check and conversion could be merged. This however would
                be more expencive, if a non ASCII string was passed.
-               TODO check wether the impact is acceptable. */
+               TODO check whether the impact is acceptable. */
        if (in_len > 15) {
                const char *aidx = (const char *)ZEND_SLIDE_TO_ALIGNED16(in);
 
index 05629db91be35bc19656c149c2cd97b0fba1ea7b..1c4610d80717b97b8890812756777349a57c60c2 100644 (file)
@@ -1,7 +1,7 @@
 /*
  *    PHP Sendmail for Windows.
  *
- *  This file is rewriten specificly for PHPFI.  Some functionality
+ *  This file is rewritten specificly for PHPFI.  Some functionality
  *  has been removed (MIME and file attachments).  This code was
  *  modified from code based on code written by Jarle Aase.
  *