]> granicus.if.org Git - php/commitdiff
Fix typos in code comments in Zend/ [skip ci]
authorTyson Andre <tysonandre775@hotmail.com>
Mon, 18 Feb 2019 16:35:35 +0000 (11:35 -0500)
committerPeter Kokot <peterkokot@gmail.com>
Mon, 18 Feb 2019 16:56:28 +0000 (17:56 +0100)
13 files changed:
Zend/zend.c
Zend/zend_alloc.c
Zend/zend_compile.c
Zend/zend_cpuinfo.h
Zend/zend_execute.c
Zend/zend_float.h
Zend/zend_gc.c
Zend/zend_hash.h
Zend/zend_inheritance.c
Zend/zend_object_handlers.c
Zend/zend_object_handlers.h
Zend/zend_string.h
Zend/zend_ts_hash.h

index f3d501f7e1c83af21a0df46f9bb94cd0f8ae1b34..7eb473c8de2031a9bccd086d7d65f6fd8942a659 100644 (file)
@@ -1399,7 +1399,7 @@ static ZEND_COLD void zend_error_va_list(int type, const char *format, va_list a
 
                        /* User error handler may include() additinal PHP files.
                         * If an error was generated during comilation PHP will compile
-                        * such scripts recursivly, but some CG() variables may be
+                        * such scripts recursively, but some CG() variables may be
                         * inconsistent. */
 
                        in_compilation = CG(in_compilation);
index f0ceb4dd35bd59775a8ba9b1d36c8a9f235b487e..678c0cc0d328e54e40f0f211a695bac6cd4b07d0 100644 (file)
@@ -196,7 +196,7 @@ int zend_mm_use_huge_pages = 0;
  * 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.
+ * The first page of each chunk is reserved for chunk header.
  * It contains service information about all pages.
  *
  * free_pages - current number of free pages in this chunk
@@ -2012,7 +2012,7 @@ ZEND_API size_t zend_mm_gc(zend_mm_heap *heap)
                                        int pages_count = bin_pages[bin_num];
 
                                        if (ZEND_MM_SRUN_FREE_COUNTER(info) == bin_elements[bin_num]) {
-                                               /* all elemens are free */
+                                               /* all elements are free */
                                                zend_mm_free_pages_ex(heap, chunk, i, pages_count, 0);
                                                collected += pages_count;
                                        } else {
index e0a3c8f1968673562946b8674a6d6659d9615552..bdc5b3170ac21ec9c762432a81becae1596f980c 100644 (file)
@@ -2153,7 +2153,7 @@ static inline void zend_handle_numeric_dim(zend_op *opline, znode *dim_node) /*
                zend_ulong index;
 
                if (ZEND_HANDLE_NUMERIC(Z_STR(dim_node->u.constant), index)) {
-                       /* For numeric indexs we also keep the original value to use by ArrayAccess
+                       /* For numeric indexes we also keep the original value to use by ArrayAccess
                         * See bug #63217
                         */
                        int c = zend_add_literal(&dim_node->u.constant);
index 7da30b5cc3e5ddc308116a55dc98df7fd74aa99d..36e14ba55635c6febb490d3199925b20ea304d31 100644 (file)
@@ -112,8 +112,8 @@ ZEND_API int zend_cpu_supports(zend_cpu_feature feature);
 #if PHP_HAVE_BUILTIN_CPU_SUPPORTS
 /* NOTE: you should use following inline function in
  * resolver functions (ifunc), as it could be called
- * before all PLT symbols are resloved. in other words,
- * resolver functions should not depends any external
+ * before all PLT symbols are resolved. in other words,
+ * resolver functions should not depend on any external
  * functions */
 ZEND_NO_SANITIZE_ADDRESS
 static zend_always_inline int zend_cpu_supports_sse2() {
index 40a1c7362c279214bf0a9208af3835f70ece02a4..7d2e4426c5da9019320355222644581564b76128 100644 (file)
@@ -3526,7 +3526,7 @@ static zend_execute_data *zend_vm_stack_copy_call_frame(zend_execute_data *call,
        /* delete old call_frame from previous stack segment */
        EG(vm_stack)->prev->top = (zval*)call;
 
-       /* delete previous stack segment if it becames empty */
+       /* delete previous stack segment if it became empty */
        if (UNEXPECTED(EG(vm_stack)->prev->top == ZEND_VM_STACK_ELEMENTS(EG(vm_stack)->prev))) {
                zend_vm_stack r = EG(vm_stack)->prev;
 
index dc1a451589873f1dc9adeb9bf8846ffe425d8377..78d55d27ae19c2716ecc82a65d0de2d62588ab6c 100644 (file)
@@ -66,7 +66,7 @@ END_EXTERN_C()
     on how to do that?
 
  MS Visual C:
-  - Since MSVC users tipically don't use autoconf or CMake, we will detect
+  - Since MSVC users typically don't use autoconf or CMake, we will detect
     MSVC via compile time define. Floating point precision change isn't
     supported on 64 bit platforms, so it's NOP. See
     http://msdn.microsoft.com/en-us/library/c9676k6h(v=vs.110).aspx
index 4d3f829412f1658167260d89c3920669458acc6a..1954c360c9697df1cb0f09ccfb464b4d0796932e 100644 (file)
@@ -48,7 +48,7 @@
  * gc_scan_roots will be called, and each root will be called with
  * gc_scan(root->ref)
  *
- * gc_scan checkes the colors of possible members.
+ * gc_scan checks the colors of possible members.
  *
  * If the node is marked as grey and the refcount > 0
  *    gc_scan_black will be called on that node to scan it's subgraph.
index 6cfa7e88219de0ca90503c5c656ea09e690a3b49..0cc34ddd4754dad25ba5053cd7c9c4319eced160 100644 (file)
@@ -168,7 +168,7 @@ ZEND_API int ZEND_FASTCALL zend_hash_str_del_ind(HashTable *ht, const char *key,
 ZEND_API int ZEND_FASTCALL zend_hash_index_del(HashTable *ht, zend_ulong h);
 ZEND_API void ZEND_FASTCALL zend_hash_del_bucket(HashTable *ht, Bucket *p);
 
-/* Data retreival */
+/* Data retrieval */
 ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key);
 ZEND_API zval* ZEND_FASTCALL zend_hash_str_find(const HashTable *ht, const char *key, size_t len);
 ZEND_API zval* ZEND_FASTCALL zend_hash_index_find(const HashTable *ht, zend_ulong h);
@@ -1063,7 +1063,7 @@ static zend_always_inline void *zend_hash_get_current_data_ptr_ex(HashTable *ht,
        _val = _z;
 
 /* The following macros are useful to insert a sequence of new elements
- * of packed array. They may be use insted of series of
+ * of packed array. They may be used instead of series of
  * zend_hash_next_index_insert_new()
  * (HashTable must have enough free buckets).
  */
index 67b8b849e49ea39209f1e5840c75f82414b6fbba..1da300f68fe882d6e6f6c025093e7097a662f877 100644 (file)
@@ -1869,7 +1869,7 @@ static void zend_do_check_for_inconsistent_traits_aliasing(zend_class_entry *ce,
                                                           ZSTR_VAL(cur_alias->trait_method.method_name));
                                } else {
                                        /** Here are two possible cases:
-                                               1) this is an attempt to modifiy the visibility
+                                               1) this is an attempt to modify the visibility
                                                   of a method introduce as part of another alias.
                                                   Since that seems to violate the DRY principle,
                                                   we check against it and abort.
index 37b978a57f83188c1f4b4b74c11ce94860e03e23..533937696f1aca5bb2ab0e79f41427787b211129 100644 (file)
@@ -1223,7 +1223,7 @@ ZEND_API zend_function *zend_get_call_trampoline_func(zend_class_entry *ce, zend
        func->opcodes = &EG(call_trampoline_op);
        ZEND_MAP_PTR_INIT(func->run_time_cache, (void***)&dummy);
        func->scope = fbc->common.scope;
-       /* reserve space for arguments, local and temorary variables */
+       /* reserve space for arguments, local and temporary variables */
        func->T = (fbc->type == ZEND_USER_FUNCTION)? MAX(fbc->op_array.last_var + fbc->op_array.T, 2) : 2;
        func->filename = (fbc->type == ZEND_USER_FUNCTION)? fbc->op_array.filename : ZSTR_EMPTY_ALLOC();
        func->line_start = (fbc->type == ZEND_USER_FUNCTION)? fbc->op_array.line_start : 0;
index b65e53d7c574d065e65ed48097b8d827aa13c198..770a67cbddf6a5bdd0e04e432478280ba45719ba 100644 (file)
@@ -134,7 +134,7 @@ typedef zend_object* (*zend_object_clone_obj_t)(zval *object);
 typedef zend_string *(*zend_object_get_class_name_t)(const zend_object *object);
 
 typedef int (*zend_object_compare_t)(zval *object1, zval *object2);
-typedef int (*zend_object_compare_zvals_t)(zval *resul, zval *op1, zval *op2);
+typedef int (*zend_object_compare_zvals_t)(zval *result, zval *op1, zval *op2);
 
 /* Cast an object to some other type.
  * readobj and retval must point to distinct zvals.
index caa018347e5181529362edf34a3fab2f1e5cca00..1accff3cd21f7c7fdad7b0a34272839b6d8f9289 100644 (file)
@@ -336,7 +336,7 @@ static zend_always_inline zend_bool zend_string_equals(zend_string *s1, zend_str
  * constants, prime or not, has never been adequately explained by
  * anyone. So I try an explanation: if one experimentally tests all
  * multipliers between 1 and 256 (as RSE did now) one detects that even
- * numbers are not useable at all. The remaining 128 odd numbers
+ * numbers are not usable at all. The remaining 128 odd numbers
  * (except for the number 1) work more or less all equally well. They
  * all distribute in an acceptable way and this way fill a hash table
  * with an average percent of approx. 86%.
index f719e25a88de4b1be8195927a40f9a51dff38fa7..35a4250d34f018cf877083ab53383c6b0d612f04 100644 (file)
@@ -64,7 +64,7 @@ ZEND_API void zend_ts_hash_reverse_apply(TsHashTable *ht, apply_func_t apply_fun
 ZEND_API int zend_ts_hash_del(TsHashTable *ht, zend_string *key);
 ZEND_API int zend_ts_hash_index_del(TsHashTable *ht, zend_ulong h);
 
-/* Data retreival */
+/* Data retrieval */
 ZEND_API zval *zend_ts_hash_find(TsHashTable *ht, zend_string *key);
 ZEND_API zval *zend_ts_hash_index_find(TsHashTable *ht, zend_ulong);