]> granicus.if.org Git - php/commitdiff
Fix typos in code comments
authorPeter Kokot <peterkokot@gmail.com>
Wed, 25 Jul 2018 03:38:50 +0000 (05:38 +0200)
committerChristoph M. Becker <cmbecker69@gmx.de>
Wed, 25 Jul 2018 09:57:11 +0000 (11:57 +0200)
26 files changed:
Zend/zend_virtual_cwd.h
Zend/zend_vm_gen.php
configure.ac
ext/calendar/jewish.c
ext/dom/node.c
ext/filter/logical_filters.c
ext/gmp/gmp.c
ext/mbstring/php_mbregex.c
ext/mysqli/mysqli.c
ext/mysqli/mysqli_api.c
ext/mysqli/mysqli_result_iterator.c
ext/opcache/Optimizer/zend_func_info.h
ext/opcache/Optimizer/zend_ssa.h
ext/pcre/upgrade-pcre.php
ext/pgsql/pgsql.c
ext/session/session.c
ext/shmop/README
ext/simplexml/simplexml.c
ext/soap/interop/client_round2_run.php
ext/soap/php_http.c
ext/spl/spl_directory.c
ext/standard/base64.c
ext/standard/file.c
main/rfc1867.c
main/streams/mmap.c
win32/codepage.h

index 579f4cd20ab86ea966703968efeab8ae35af85b9..43d3965adb65b4c1252a9465ec7f3fd13937e275 100644 (file)
@@ -170,7 +170,7 @@ CWD_API int virtual_chown(const char *filename, uid_t owner, gid_t group, int li
 /* One of the following constants must be used as the last argument
    in virtual_file_ex() call. */
 
-#define CWD_EXPAND   0 /* expand "." and ".." but dont resolve symlinks      */
+#define CWD_EXPAND   0 /* expand "." and ".." but don't resolve symlinks     */
 #define CWD_FILEPATH 1 /* resolve symlinks if file is exist otherwise expand */
 #define CWD_REALPATH 2 /* call realpath(), resolve symlinks. File must exist */
 
index 45e298c9b038e35de223ff62a58a4f3bb188eeaf..6cbb2c5087661f7a28c9cb79b713a1ffc6b9b4db 100644 (file)
@@ -705,7 +705,7 @@ function opcode_name($name, $spec, $op1, $op2) {
                        } else if (isset($opcode["op2"]["ANY"])) {
                                $op2 = "ANY";
                        } else if ($spec) {
-                               /* dispatch to unkonwn handler in unreachable code */
+                               /* dispatch to unknown handler in unreachable code */
                                return "ZEND_NULL";
                        }
                }
index d528fd3acf73e399676e203f9484f6cf118e7fc2..c3642fc1c1488c77697f1e7b9f988260ac9d5988 100644 (file)
@@ -1144,7 +1144,7 @@ PHP_ARG_WITH(pear, [whether to install PEAR],
 if test "$PHP_PEAR" != "no"; then
 
   dnl
-  dnl PEAR dependancies
+  dnl PEAR dependencies
   dnl
   if test "$PHP_XML" = "no"; then
     pear_error_msg="$pear_error_msg 
index 07284ed8c27be583802b5a3b6d52a3392ace0f5a..399fcf9100209ccb5b8d0e82561256f89cc7d44e 100644 (file)
 #define HALAKIM_PER_METONIC_CYCLE (HALAKIM_PER_LUNAR_CYCLE * (12 * 19 + 7))
 
 #define JEWISH_SDN_OFFSET 347997
-#define JEWISH_SDN_MAX 324542846L /* 12/13/887605, greater value raises interger overflow */
+#define JEWISH_SDN_MAX 324542846L /* 12/13/887605, greater value raises integer overflow */
 #define NEW_MOON_OF_CREATION 31524
 
 #define SUNDAY    0
index 0183174148b676b087f9053e4187c0926c52bd18..0e7f64a9bdb22809e3f1d89dc339db4cfad4b776 100644 (file)
@@ -1372,7 +1372,7 @@ PHP_FUNCTION(dom_node_clone_node)
        }
 
        /* When deep is false Element nodes still require the attributes
-       Following taken from libxml as xmlDocCopyNode doesnt do this */
+       Following taken from libxml as xmlDocCopyNode doesn't do this */
        if (n->type == XML_ELEMENT_NODE && recursive == 0) {
                if (n->nsDef != NULL) {
                        node->nsDef = xmlCopyNamespaceList(n->nsDef);
index 1b685eb5504659d89938da3969070571e4e750a3..076d2479461fdb9c726b9a1446d8b42576748cdd 100644 (file)
@@ -758,7 +758,7 @@ static int _php_filter_validate_ipv6(char *str, size_t str_len) /* {{{ */
                                        return (blocks <= 8);
                                }
                        } else if ((str - 1) == s) {
-                               /* dont allow leading : without another : following */
+                               /* don't allow leading : without another : following */
                                return 0;
                        }
                }
index 84e7b4454c5b0f152e05bdca150f3417aab5a11b..3c92735cf641a7703a48b6651a202c8f4fa9267a 100644 (file)
@@ -604,7 +604,7 @@ static int gmp_unserialize(zval *object, zend_class_entry *ce, const unsigned ch
        gmp_create(object, &gmpnum);
 
        /* The "object" variable may be modified during the execution of this unserialize handler
-        * (it may turn into a reference). Keep the original object around for futher operations. */
+        * (it may turn into a reference). Keep the original object around for further operations. */
        ZVAL_COPY_VALUE(&object_copy, object);
 
        p = buf;
index dd1bef031a6ad97b47837a4ccf45fada9a9d87b9..68922b696653af386a8b5faca06ff99d66e0f75a 100644 (file)
@@ -665,7 +665,7 @@ mb_regex_groups_iter(const OnigUChar* name, const OnigUChar* name_end, int ngrou
        int gn, beg, end;
 
        /*
-        * In case of duplicate groups, keep only the last suceeding one
+        * In case of duplicate groups, keep only the last succeeding one
         * to be consistent with preg_match with the PCRE_DUPNAMES option.
         */
        gn = onig_name_to_backref_number(reg, name, name_end, args->region);
index ae5ed4ba441b3ec42a1e93a9556fea32f0a57fb7..a25bc096ce4b8ab994168904eb978854e66e90ff 100644 (file)
@@ -978,7 +978,7 @@ PHP_MINFO_FUNCTION(mysqli)
 /* }}} */
 
 
-/* Dependancies */
+/* Dependencies */
 static const  zend_module_dep mysqli_deps[] = {
        ZEND_MOD_REQUIRED("spl")
 #if defined(MYSQLI_USE_MYSQLND)
index 2110f35ae120529b34f3110886b7d7ab18147f97..40c7d2982d37463166e4b8a81154c3c411c0e908 100644 (file)
@@ -542,7 +542,7 @@ mysqli_stmt_bind_result_do_bind(MY_STMT *stmt, zval *args, unsigned int argc)
        MYSQLI_REPORT_STMT_ERROR(stmt->stmt);
 
        if (rc) {
-               /* dont close the statement or subsequent usage (for example ->execute()) will lead to crash */
+               /* don't close the statement or subsequent usage (for example ->execute()) will lead to crash */
                for (i=0; i < var_cnt ; i++) {
                        if (stmt->result.buf[i].val) {
                                efree(stmt->result.buf[i].val);
index ec9a9e5b2d88464dac3f15e4e983d6c5bd65c5c4..9b42094345592272e9539c250d6970bb8f536516 100644 (file)
@@ -66,7 +66,7 @@ static void php_mysqli_result_iterator_dtor(zend_object_iterator *iter)
 {
        php_mysqli_result_iterator *iterator = (php_mysqli_result_iterator*)iter;
 
-       /* cleanup handled in sxe_object_dtor as we dont always have an iterator wrapper */
+       /* cleanup handled in sxe_object_dtor as we don't always have an iterator wrapper */
        zval_ptr_dtor(&iterator->intern.data);
        zval_ptr_dtor(&iterator->current_row);
 }
index 81a52bd0786b7f3c49e8bb9eb39fb1537f7569dd..37a88d8bf0ae5605247f2ce48c62050d7fb6a07c 100644 (file)
@@ -22,7 +22,7 @@
 #include "zend_ssa.h"
 
 /* func flags */
-#define ZEND_FUNC_INDIRECT_VAR_ACCESS      (1<<0)  /* accesses varables by name   */
+#define ZEND_FUNC_INDIRECT_VAR_ACCESS      (1<<0)  /* accesses variables by name  */
 #define ZEND_FUNC_HAS_CALLS                (1<<1)
 #define ZEND_FUNC_VARARG                   (1<<2)  /* uses func_get_args()        */
 #define ZEND_FUNC_NO_LOOPS                 (1<<3)
index 61c4166c64362a0ee71afe132877114e70db4f78..cfb6f1dec2d811e52a453fae3c20503ce14dc60a 100644 (file)
@@ -113,7 +113,7 @@ typedef struct _zend_ssa_var {
        zend_ssa_phi          *definition_phi; /* phi that defines this value */
        int                    use_chain;      /* uses of this value, linked through opN_use_chain */
        zend_ssa_phi          *phi_use_chain;  /* uses of this value in Phi, linked through use_chain */
-       zend_ssa_phi          *sym_use_chain;  /* uses of this value in Pi constaints */
+       zend_ssa_phi          *sym_use_chain;  /* uses of this value in Pi constraints */
        unsigned int           no_val : 1;     /* value doesn't mater (used as op1 in ZEND_ASSIGN) */
        unsigned int           scc_entry : 1;
        unsigned int           alias : 2;  /* value may be changed indirectly */
index 6da627d750161bf66c9bc15ec137a26455301a37..b0da6cdb44894332f7c28fd2f8886abe6854a1c6 100644 (file)
@@ -61,7 +61,7 @@ function recurse($path)
                        die("$newfile is not available any more\n");
                }
 
-               // maintain file mtimes so that cvs doesnt get crazy
+               // maintain file mtimes so that cvs doesn't get crazy
                if (file_get_contents($newfile) !== file_get_contents($file)) {
                        copy($newfile, $file);
                }
index 36cdeac4e0782b8918532db13bd537df7acb1106..5b613a43280572f462ff11975e650262887d30f8 100644 (file)
@@ -1093,7 +1093,7 @@ static PHP_GINIT_FUNCTION(pgsql)
        ZEND_TSRMLS_CACHE_UPDATE();
 #endif
        memset(pgsql_globals, 0, sizeof(zend_pgsql_globals));
-       /* Initilize notice message hash at MINIT only */
+       /* Initialize notice message hash at MINIT only */
        zend_hash_init_ex(&pgsql_globals->notices, 0, NULL, ZVAL_PTR_DTOR, 1, 0);
 }
 /* }}} */
index 7c6b880cc83fbc76066304f93c5fafc08ae21eaa..3de38702349a256aafb2dbf3f94809c72c2fdece 100644 (file)
@@ -1544,7 +1544,7 @@ PHPAPI int php_session_start(void) /* {{{ */
                                PS(define_sid) = 0;
                        }
                }
-               /* Initilize session ID from non cookie values */
+               /* Initialize session ID from non cookie values */
                if (!PS(use_only_cookies)) {
                        if (!PS(id) && (data = zend_hash_str_find(&EG(symbol_table), "_GET", sizeof("_GET") - 1))) {
                                ZVAL_DEREF(data);
index c4970376b0d0d0c8fd04375b6197ec489079cd98..2553f3fe187ed6117a0de637c5113840757136ea 100644 (file)
@@ -26,7 +26,7 @@ int shmop_open(int key, string flags, int mode, int size)
        mode            - acsess mode same as for a file (0644) for example
        size            - size of the block in bytes
        
-       returns an indentifier
+       returns an identifier
        
 
 char shmop_read(int shmid, int start, int count)
index 1abf68fcc5f1493083d74151d0b013e552c0282d..92e6de107ac181d22d26828e83c333d045fdbd26 100644 (file)
@@ -2410,7 +2410,7 @@ static void php_sxe_iterator_dtor(zend_object_iterator *iter) /* {{{ */
 {
        php_sxe_iterator *iterator = (php_sxe_iterator *)iter;
 
-       /* cleanup handled in sxe_object_dtor as we dont always have an iterator wrapper */
+       /* cleanup handled in sxe_object_dtor as we don't always have an iterator wrapper */
        if (!Z_ISUNDEF(iterator->intern.data)) {
                zval_ptr_dtor(&iterator->intern.data);
        }
index d9a2af0aebc31ceb5747750a1119be72c81c04db..f850448ce91fd412a90d8084d5609540dba977aa 100644 (file)
@@ -21,7 +21,7 @@ require_once 'client_round2_interop.php';
 $iop = new Interop_Client();
 $iop->html = 0;
 
-// force a fetch of endpoints, this happens irregardless if no endpoints in database
+// force a fetch of endpoints, this happens regardless if no endpoints in database
 $iop->fetchEndpoints();
 
 // set some options
index 7a2410de82242947509e5db17657ee85d299a532..fc068bf4d14c471bb23007643606ade7582f5801 100644 (file)
@@ -946,7 +946,7 @@ try_again:
        /* Grab and send back every cookie */
 
        /* Not going to worry about Path: because
-          we shouldn't be changing urls so path dont
+          we shouldn't be changing urls so path doesn't
           matter too much
        */
        cookie_itt = strstr(ZSTR_VAL(http_headers), "Set-Cookie: ");
index 471239dd31f1b7135ee43c0f984026297e49cfa2..0554226ad8e1c03057408ce5f855d947596e2f89 100644 (file)
@@ -2914,7 +2914,7 @@ SPL_METHOD(SplFileObject, fread)
        ZVAL_NEW_STR(return_value, zend_string_alloc(length, 0));
        Z_STRLEN_P(return_value) = php_stream_read(intern->u.file.stream, Z_STRVAL_P(return_value), length);
 
-       /* needed because recv/read/gzread doesnt put a null at the end*/
+       /* needed because recv/read/gzread doesn't put a null at the end*/
        Z_STRVAL_P(return_value)[Z_STRLEN_P(return_value)] = 0;
 }
 
index 4a3a76ac0a041f1fc583110d3b24a2abb156aa10..fb6d491acfec0b6c2944fb8f6382ec3d04f471d1 100644 (file)
@@ -396,7 +396,7 @@ static __m128i php_base64_encode_ssse3_translate(__m128i in)
        /* mask is 0xFF (-1) for range #[1..4] and 0x00 for range #0: */
        mask = _mm_cmpgt_epi8(in, _mm_set1_epi8(25));
 
-       /* substract -1, so add 1 to indices for range #[1..4], All indices are now correct: */
+       /* subtract -1, so add 1 to indices for range #[1..4], All indices are now correct: */
        indices = _mm_sub_epi8(indices, mask);
 
        /* Add offsets to input values: */
index fd4413363979009ea48d8fc902ff455be8f5f4dc..7596f0e18f63691e79c3f71705238138e6835f38 100644 (file)
@@ -1121,7 +1121,7 @@ PHPAPI PHP_FUNCTION(fgetss)
 
                len = (size_t) bytes;
                buf = safe_emalloc(sizeof(char), (len + 1), 0);
-               /*needed because recv doesnt set null char at end*/
+               /*needed because recv doesn't set null char at end*/
                memset(buf, 0, len + 1);
        }
 
@@ -1816,7 +1816,7 @@ PHPAPI PHP_FUNCTION(fread)
        ZVAL_NEW_STR(return_value, zend_string_alloc(len, 0));
        Z_STRLEN_P(return_value) = php_stream_read(stream, Z_STRVAL_P(return_value), len);
 
-       /* needed because recv/read/gzread doesnt put a null at the end*/
+       /* needed because recv/read/gzread doesn't put a null at the end*/
        Z_STRVAL_P(return_value)[Z_STRLEN_P(return_value)] = 0;
 
        if (Z_STRLEN_P(return_value) < len / 2) {
index 38c420ce6f61be6a2b857b8e3e549bf56ee4f212..8a8e335ef43437583c88db0ee78a35e34b0ee3d6 100644 (file)
@@ -392,7 +392,7 @@ static int find_boundary(multipart_buffer *self, char *boundary)
 {
        char *line;
 
-       /* loop thru lines */
+       /* loop through lines */
        while( (line = get_line(self)) )
        {
                /* finished if we found the boundary */
index 2b7c3e356cff9cba2a296bfdda57ff98f7c6d5a0..94c80a9dc5247ec71842d0cf2da55fe8605a71a2 100644 (file)
@@ -30,7 +30,7 @@ PHPAPI char *_php_stream_mmap_range(php_stream *stream, size_t offset, size_t le
        range.mapped = NULL;
 
        /* For now, we impose an arbitrary limit to avoid
-        * runaway swapping when large files are passed thru. */
+        * runaway swapping when large files are passed through. */
        if (length > 4 * 1024 * 1024) {
                return NULL;
        }
index cf3d72e39bc4613364bbf5a7cc9c27dd7a500c60..7929ea75094d08d68c227a1d5969ce2718a8f8de 100644 (file)
@@ -76,7 +76,7 @@ PW32CP char *php_win32_cp_conv_w_to_cur(const wchar_t* in, size_t in_len, size_t
 PW32CP wchar_t *php_win32_cp_env_any_to_w(const char* env);
 
 /* This function tries to make the best guess to convert any
-   given string to a wide char, also prefering the fastest code
+   given string to a wide char, also preferring the fastest code
    path to unicode. It returns NULL on fail. */
 __forceinline static wchar_t *php_win32_cp_conv_any_to_w(const char* in, size_t in_len, size_t *out_len)
 {/*{{{*/