]> granicus.if.org Git - php/commitdiff
Fix #78880 Another round
authorMáté Kocsis <kocsismate@woohoolabs.com>
Sun, 19 Jan 2020 07:50:48 +0000 (08:50 +0100)
committerMáté Kocsis <kocsismate@woohoolabs.com>
Sun, 19 Jan 2020 17:28:43 +0000 (18:28 +0100)
25 files changed:
Zend/zend_inheritance.c
ext/date/tests/DateTime_extends_basic3.phpt
ext/date/tests/bug30096.phpt
ext/date/tests/bug73858.phpt
ext/date/tests/timezone_name_from_abbr_basic1.phpt
ext/dba/dba.c
ext/dom/tests/DOMDocument_createAttribute_error.phpt
ext/enchant/enchant.c
ext/exif/exif.c
ext/gd/tests/imageantialias_error2.phpt
ext/gd/tests/imagecolorset_basic.phpt
ext/hash/hash.c
ext/mbstring/tests/htmlent.phpt
ext/opcache/Optimizer/zend_ssa.c
ext/opcache/jit/zend_jit_x86.dasc
ext/opcache/tests/wrong_inlining_004.phpt
ext/openssl/tests/openssl_error_string_basic.phpt
ext/pdo_mysql/tests/pdo_mysql_stmt_variable_columncount.phpt
ext/phar/tests/tar/bug67761.phpt
ext/posix/tests/posix_ttyname_error_wrongparams.phpt
ext/snmp/snmp.c
ext/standard/tests/array/array_change_key_case_variation6.phpt
ext/standard/tests/array/sort_variation11.phpt
ext/standard/tests/strings/join_basic.phpt
ext/standard/tests/strings/setlocale_variation1.phpt

index 9a9199a1988da725fc12e7bcec8624748358f8eb..ce55704ef7690fc3933b003fb37c0ace3fccd31a 100644 (file)
@@ -451,7 +451,7 @@ static inheritance_status zend_perform_covariant_type_check(
                        }
                } ZEND_TYPE_LIST_FOREACH_END();
 
-               /* All individual checks suceeded, overall success */
+               /* All individual checks succeeded, overall success */
                if (all_success) {
                        return INHERITANCE_SUCCESS;
                }
index 95a74631c3f604361962b2cece4fad68da35fddd..3f48cb2e2170604d3c5f776532559814c6f8b00c 100644 (file)
@@ -1,5 +1,5 @@
 --TEST--
-Test DateTime class inheritance : with user space fromat() method
+Test DateTime class inheritance : with user space format() method
 --FILE--
 <?php
 //Set the default time zone
index 9ca45c4ffe945d7bb367ea9374469814c512765d..dbda97beff39c376a03ff3819978ffe1cc51c3f0 100644 (file)
@@ -1,5 +1,5 @@
 --TEST--
-Bug #30096 (gmmktime does not return the corrent time)
+Bug #30096 (gmmktime does not return the correct time)
 --INI--
 error_reporting=2047
 --FILE--
index 300b3667498ab050032b49069f62841947bf538a..fb41390b0fd93ebb5949b9173d914fc3dba850f8 100644 (file)
@@ -45,7 +45,7 @@ var_dump($d->days); // 30 ... and should be 30
 
 /*
 [Workaround]
-This final test seems to prove that the input string is important and that the "- 1 secord" has a negative knock-on
+This final test seems to prove that the input string is important and that the "- 1 second" has a negative knock-on
 effect on the results of the diff. By modifying the datetime with ->modify everything works as expected ...
 it just means you have to be careful of how we work with DateTimes .
 */
index dd2a796cb6ce9e0956222c037565d48211597cfd..51b5d9b19ec2ededa62828dee2b12c0aba46dd8a 100644 (file)
@@ -3,7 +3,7 @@ Test timezone_name_from_abbr() function : basic functionality
 --FILE--
 <?php
 /* Prototype  : string timezone_name_from_abbr  ( string $abbr  [, int $gmtOffset= -1  [, int $isdst= -1  ]] )
- * Description: Returns the timezone name from abbrevation
+ * Description: Returns the timezone name from abbreviation
  * Source code: ext/date/php_date.c
  * Alias to functions:
  */
index 6c151fbba9d76a41f4a1167ddcc9dd56b860c5cd..d407d2a8e7dc5fad6b7002f4f2811666df0806a6 100644 (file)
@@ -1003,8 +1003,8 @@ PHP_FUNCTION(dba_fetch)
                                skip = 0;
                        }
                } else if (!strcmp(info->hnd->name, "inifile")) {
-                       /* "-1" is compareable to 0 but allows a non restrictive
-                        * access which is fater. For example 'inifile' uses this
+                       /* "-1" is comparable to 0 but allows a non restrictive
+                        * access which is faster. For example 'inifile' uses this
                         * to allow faster access when the key was already found
                         * using firstkey/nextkey. However explicitly setting the
                         * value to 0 ensures the first value.
index da2a967c3aea37f982473d8ad2f468493357a8bb..a395ba9579a462d40b0fac92e5c4043862f806e0 100644 (file)
@@ -1,5 +1,5 @@
 --TEST--
-Test DOMDocument::createAttribute() for expected expection thrown when wrong parameter passed
+Test DOMDocument::createAttribute() for expected exception thrown when wrong parameter passed
 --SKIPIF--
 <?php require_once('skipif.inc'); ?>
 --FILE--
index f4becaac465adf20826832f1177840d4ff70ff8b..9d12c9341f3b213a268d9c1bf909a3af3ddccd4e 100644 (file)
@@ -312,7 +312,7 @@ PHP_FUNCTION(enchant_broker_init)
 /* }}} */
 
 /* {{{ proto bool enchant_broker_free(resource broker)
-   Destroys the broker object and its dictionnaries */
+   Destroys the broker object and its dictionaries */
 PHP_FUNCTION(enchant_broker_free)
 {
        zval *broker;
index ff23b67764030c407530f283f5a064c0e749704d..a8aa9e46f02b173a242539db894043d0283d99a8 100644 (file)
@@ -335,7 +335,7 @@ static char *exif_get_tagformat(int format)
 #define TAG_GPS_AREA_INFORMATION        0x001C
 #define TAG_GPS_DATE_STAMP              0x001D
 #define TAG_GPS_DIFFERENTIAL            0x001E
-#define TAG_TIFF_COMMENT                0x00FE /* SHOUDLNT HAPPEN */
+#define TAG_TIFF_COMMENT                0x00FE /* SHOULDN'T HAPPEN */
 #define TAG_NEW_SUBFILE                 0x00FE /* New version of subfile tag */
 #define TAG_SUBFILE_TYPE                0x00FF /* Old version of subfile tag */
 #define TAG_IMAGEWIDTH                  0x0100
@@ -3002,7 +3002,7 @@ static int exif_process_user_comment(image_info_type *ImageInfo, char **pszInfoP
                        szValuePtr = szValuePtr+8;
                        ByteCount -= 8;
                } else if (!memcmp(szValuePtr, "JIS\0\0\0\0\0", 8)) {
-                       /* JIS should be tanslated to MB or we leave it to the user - leave it to the user */
+                       /* JIS should be translated to MB or we leave it to the user - leave it to the user */
                        *pszEncoding = estrdup((const char*)szValuePtr);
                        szValuePtr = szValuePtr+8;
                        ByteCount -= 8;
index 7971e90cae0e0fc5198093e7ea7537867969ad83..2b17b7825835d43582986b538df64f73eeca87b6 100644 (file)
@@ -11,7 +11,7 @@ if (!extension_loaded("gd")) die("skip GD not present");
 <?php
 /*
 
-It seems the second argument passing is not being correclty checked.
+It seems the second argument passing is not being correctly checked.
 This test is failing due to this wrogn check
 
 */
index f051a2202f7682c29fdac3e39a2ec20696fe9e72..ef7f361ad519f1c6f13a5382a4642374aa391978 100644 (file)
@@ -20,7 +20,7 @@ imagecolorallocate($im, 255, 0, 0);
 // Get the color index for the background
 $bg = imagecolorat($im, 0, 0);
 
-// Set the backgrund to be blue
+// Set the background to be blue
 imagecolorset($im, $bg, 0, 0, 255);
 
 include_once __DIR__ . '/func.inc';
index 614d53666b6c6c89819541bfa30444bbd4ad881b..e4b28c0e6b315ffcd4f2caeb3c4d798ec074499a 100644 (file)
@@ -544,7 +544,7 @@ PHP_FUNCTION(hash_final)
                        hash->key[i] ^= 0x6A;
                }
 
-               /* Feed this result into the outter hash */
+               /* Feed this result into the outer hash */
                hash->ops->hash_init(hash->context);
                hash->ops->hash_update(hash->context, hash->key, hash->ops->block_size);
                hash->ops->hash_update(hash->context, (unsigned char *) ZSTR_VAL(digest), hash->ops->digest_size);
index 23ac68ba98fdd2e09dedb46ba75a0a8336fe5401..eb251efd7bf81e330061c2b7896198275ba0064b 100644 (file)
@@ -24,7 +24,7 @@ filter.default=unsafe_raw
 // If you do not see &auml;... on output this means output encoding fails.
 // Using UTF-8 internally allows to encode/decode ALL characters.
 // &128... will stay as they are since their character codes are above 127
-// and they do not have a named entity representaion.
+// and they do not have a named entity representation.
 ?>
 <?php echo mb_http_input('l').'>'.mb_internal_encoding().'>'.mb_http_output();?>
 
index b4d581f2471b035ba6923fd4ad486d870653fdc0..947602eb989d064063a57de891910294a73c06ab 100644 (file)
@@ -223,7 +223,7 @@ static int find_adjusted_tmp_var(const zend_op_array *op_array, uint32_t build_f
 
 /* e-SSA construction: Pi placement (Pi is actually a Phi with single
  * source and constraint).
- * Order of Phis is importent, Pis must be placed before Phis
+ * Order of Phis is important, Pis must be placed before Phis
  */
 static void place_essa_pis(
                zend_arena **arena, const zend_script *script, const zend_op_array *op_array,
index 345da92a24870ab17854ff2a32ebc6378485989a..f28c39f8a40ce5022225363c8ad86e902798da81 100644 (file)
@@ -6870,7 +6870,7 @@ static int zend_jit_do_fcall(dasm_State **Dst, const zend_op *opline, const zend
                /* Reuse reserved arguments stack */
                res_addr = ZEND_ADDR_MEM_ZVAL(ZREG_R4, 0x20);
 #else
-               /* CPU stack alocated temporary zval */
+               /* CPU stack allocated temporary zval */
                res_addr = ZEND_ADDR_MEM_ZVAL(ZREG_R4, 8);
 #endif
        }
@@ -7917,7 +7917,7 @@ static int zend_jit_free_compiled_variables(dasm_State **Dst, const zend_op *opl
                }
 
 #ifdef ZEND_JIT_USE_RC_INFERENCE
-               /* Refcount may be increased by RETRUN opcode */
+               /* Refcount may be increased by RETURN opcode */
                if ((info & MAY_BE_RC1) && !(info & MAY_BE_RCN)) {
                        for (j = 0; j < ssa->cfg.blocks_count; j++) {
                                if ((ssa->cfg.blocks[j].flags & ZEND_BB_REACHABLE) &&
@@ -8847,7 +8847,7 @@ static uint32_t zend_get_known_property_offset(zend_class_entry *ce, zend_string
 
        if (ce->ce_flags & ZEND_ACC_INHERITED) {
                if (!ce->parent) {
-                       /* property offets may be changed by inheritance */
+                       /* property offsets may be changed by inheritance */
                        return ZEND_WRONG_PROPERTY_OFFSET;
                } else {
                        zend_class_entry *parent = ce->parent;
index 8ecb87cd4f1be50cca125872e4b398e7c87a7960..26f8f4b2bf3fcccce8811a090e86679313fc397b 100644 (file)
@@ -1,5 +1,5 @@
 --TEST--
-Inlining throgh call_user_func()
+Inlining through call_user_func()
 --INI--
 opcache.enable=1
 opcache.enable_cli=1
index 2d753e11be2416718f345793228e1d0f3ee402dc..3e3bbd03af7c693c6331727cdb6fff079ba42afb 100644 (file)
@@ -145,7 +145,7 @@ expect_openssl_errors('openssl_csr_get_subject open', ['02001002', '2006D080']);
 @openssl_csr_get_subject($crt_file);
 expect_openssl_errors('openssl_csr_get_subjec pem', [$err_pem_no_start_line]);
 
-// other possible cuases that are difficult to catch:
+// other possible causes that are difficult to catch:
 // - ASN1_STRING_to_UTF8 fails in add_assoc_name_entry
 // - invalid php_x509_request field (NULL) would cause error with CONF_get_string
 
index 63a500b7b3a5e813afa78d6742982f213ea2c56b..7c39b885588f32371954dc153d04b31205b967a1 100644 (file)
@@ -49,7 +49,7 @@ if ($version < 50000)
 
        try {
 
-               // What will happen if a PS returns a differen number of result set column upon each execution?
+               // What will happen if a PS returns a different number of result set column upon each execution?
                // Lets try with a SP accepting parameters...
                $db->exec('DROP PROCEDURE IF EXISTS p');
                $db->exec('CREATE PROCEDURE p(IN cols INT) BEGIN IF cols < 2 THEN SELECT cols AS "one"; ELSE SELECT 1 AS "one", cols AS "two"; END IF; END;');
index c8d013cab161196067f867e0599b300c3e2c8d01..add6b06cfa90f43a399b233f93db48725f98ca0a 100644 (file)
@@ -1,7 +1,7 @@
 --TEST--
 Bug #67761 (Phar::mapPhar fails for Phars inside a path containing ".tar")
 --SKIPIF--
-<?php extension_loaded("phar") or die("SKIP need ext/phar suppport"); ?>
+<?php extension_loaded("phar") or die("SKIP need ext/phar support"); ?>
 --FILE--
 <?php
 
index 66a6cd9bd988baca5df301ec15d576a409d619eb..92cf671c1dd50a4ff283d2f7cf953659bf874029 100644 (file)
@@ -12,14 +12,14 @@ PHP Testfest Berlin 2009-05-10
        if (!extension_loaded('posix')) {
         die('SKIP - POSIX extension not available');
     }
-    
+
     if (!function_exists('curl_init')) {
         die('SKIP - Function curl_init() not available');
     }
 ?>
 --FILE--
 <?php
-var_dump(posix_ttyname(0)); // param not a ressource
+var_dump(posix_ttyname(0)); // param not a resource
 try {
     var_dump(posix_ttyname(curl_init())); // wrong resource type
 } catch (TypeError $e) {
index 95117686f87e925aff8e60be6a904c55fc9f430b..ac630871bd6a03ad961f43bc7eac949b18a4afad 100644 (file)
@@ -308,7 +308,7 @@ static void php_snmp_getvalue(struct variable_list *vars, zval *snmpval, int val
        int buflen = sizeof(sbuf) - 1;
        int val_len = vars->val_len;
 
-       /* use emalloc() for large values, use static array otherwize */
+       /* use emalloc() for large values, use static array otherwise */
 
        /* There is no way to know the size of buffer snprint_value() needs in order to print a value there.
         * So we are forced to probe it
index 383993c38c11f62e6b510fd1cfc400b0346ae2bb..aa87ee1fb50441ed36621be79ed35de61fe8c8e7 100644 (file)
@@ -20,7 +20,7 @@ $input = array('English' => array('one' => 1, 'two' => 2, 'three' => 3),
 echo "\n-- Pass a two-dimensional array as \$input argument --\n";
 var_dump(array_change_key_case($input, CASE_UPPER));
 
-echo "\n-- Pass a sub-arry as \$input argument --\n";
+echo "\n-- Pass a sub-array as \$input argument --\n";
 var_dump(array_change_key_case($input['English'], CASE_UPPER));
 
 echo "Done";
@@ -59,7 +59,7 @@ array(3) {
   }
 }
 
--- Pass a sub-arry as $input argument --
+-- Pass a sub-array as $input argument --
 array(3) {
   ["ONE"]=>
   int(1)
index 5a0bea5ffb35b82816eb31aa94381acd223931ae..50d40fca63cf5d5eeb090bd0c9a97922e1e924a0 100644 (file)
Binary files a/ext/standard/tests/array/sort_variation11.phpt and b/ext/standard/tests/array/sort_variation11.phpt differ
index 483976d9423ccc6277310bf9d1e5f26d9fe3920b..0429fe0b49d7fe6eb6004b2297fd4fadf4de5da2 100644 (file)
@@ -14,7 +14,7 @@ echo "*** Testing join() : basic functionality ***\n";
 $glue = ',';
 $pieces = array(1, 2, 3, 4);
 
-// pieces as arry with numeric values
+// pieces as array with numeric values
 var_dump( join($glue, $pieces) );
 
 // pieces as array with strings values
index 6dc4179baf0dfbd5702e08a77cbed9e15578df3f..a44dbc7e9eaf825cb9ac1de8e9b47bbde46b253d 100644 (file)
@@ -1,5 +1,5 @@
 --TEST--
-Test setlocale() function : usage variations - passing multiple valid/invlaid locales as argument
+Test setlocale() function : usage variations - passing multiple valid/invalid locales as argument
 --SKIPIF--
 <?php
 if (substr(PHP_OS, 0, 3) == 'WIN') {