]> granicus.if.org Git - php/commitdiff
Fix miscellaneous typos in docs and error messages
authorTyson Andre <tysonandre775@hotmail.com>
Sun, 27 Oct 2019 03:44:36 +0000 (23:44 -0400)
committerNikita Popov <nikita.ppv@gmail.com>
Mon, 28 Oct 2019 10:44:08 +0000 (11:44 +0100)
Closes GH-4863.

UPGRADING
Zend/zend_alloc.c
Zend/zend_compile.h
Zend/zend_types.h
ext/standard/config.w32
ext/standard/math.c
ext/standard/var_unserializer.re

index f083d6d245e87890f46214fabf04a814b0631c07..8ef0d14117911c207557c60a17e8366e25bb350d 100644 (file)
--- a/UPGRADING
+++ b/UPGRADING
@@ -209,7 +209,7 @@ PHP 8.0 UPGRADE NOTES
     mb_decode_numericentity().
 
 - PCRE:
-  . When passing invalid escape sequences they are no longer intepreted as
+  . When passing invalid escape sequences they are no longer interpreted as
     literals. This behaviour previously required the X modifier - which is
     now ignored.
 
@@ -333,7 +333,7 @@ PHP 8.0 UPGRADE NOTES
 ========================================
 
 - Standard:
-  . Added fdiv() method, which performs a floating-point devision under
+  . Added fdiv() method, which performs a floating-point division under
     IEEE 754 semantics. Division by zero is considered well-defined and
     will return one of Inf, -Inf or NaN.
 
index 21ccf85049645abf754dc939dc198a993210b553..982bb0387462d583536d12d1b93eeb7dab392d69 100644 (file)
@@ -260,7 +260,7 @@ struct _zend_mm_heap {
        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 */
-       int                last_chunks_delete_boundary; /* numer of chunks after last deletion */
+       int                last_chunks_delete_boundary; /* number of chunks after last deletion */
        int                last_chunks_delete_count;    /* number of deletion over the last boundary */
 #if ZEND_MM_CUSTOM
        union {
index 8eac0dcae7e074fcf11db3b950465e2b6c5f55b0..e4096a05a569364efecfc0469a47a21678487521 100644 (file)
@@ -51,7 +51,7 @@ typedef struct _zend_op zend_op;
 
 /* On 64-bit systems less optimal, but more compact VM code leads to better
  * performance. So on 32-bit systems we use absolute addresses for jump
- * targets and constants, but on 64-bit systems realtive 32-bit offsets */
+ * targets and constants, but on 64-bit systems relative 32-bit offsets */
 #if SIZEOF_SIZE_T == 4
 # define ZEND_USE_ABS_JMP_ADDR      1
 # define ZEND_USE_ABS_CONST_ADDR    1
index 4582f3188c66bf5bfadacbdac84dda1e90c052c6..5fa3e7918c0e43dd4c06459e2f7ebc4c26e3e820 100644 (file)
@@ -1277,7 +1277,7 @@ static zend_always_inline uint32_t zval_delref_p(zval* pz) {
                }                                                                                               \
        } while (0)
 
-/* Properties store a flag distinguishing unset and unintialized properties
+/* Properties store a flag distinguishing unset and uninitialized properties
  * (both use IS_UNDEF type) in the Z_EXTRA space. As such we also need to copy
  * the Z_EXTRA space when copying property default values etc. We define separate
  * macros for this purpose, so this workaround is easier to remove in the future. */
index 0f47242145506f903cf72c6b6de8890eb86caf29..16238f800efdd55dbcbb7fd1f3a70ec3a593c67b 100644 (file)
@@ -6,11 +6,11 @@ if (PHP_PASSWORD_ARGON2 != "no") {
        if (CHECK_LIB("argon2_a.lib;argon2.lib", null, PHP_PASSWORD_ARGON2)
        && CHECK_HEADER_ADD_INCLUDE("argon2.h", "CFLAGS")) {
                if (!CHECK_FUNC_IN_HEADER("argon2.h", "argon2id_hash_raw", PHP_PHP_BUILD + "\\include", "CFLAGS")) {
-                       ERROR("Please verify that Argon2 header and libaries >= 20161029 are installed");
+                       ERROR("Please verify that Argon2 header and libraries >= 20161029 are installed");
                }
                AC_DEFINE('HAVE_ARGON2LIB', 1);
        } else {
-               WARNING("Argon2 not enabled; libaries and headers not found");
+               WARNING("Argon2 not enabled; libraries and headers not found");
        }
 }
 
index be3516400a19131a65a7ed2710bc4843f7915ff9..c810c432f3a9e904b7b16955867d39be89714bcf 100644 (file)
@@ -649,7 +649,7 @@ PHP_FUNCTION(exp)
 /* {{{ proto float expm1(float number)
    Returns exp(number) - 1, computed in a way that accurate even when the value of number is close to zero */
 /*
-   WARNING: this function is expermental: it could change its name or
+   WARNING: this function is experimental: it could change its name or
    disappear in the next version of PHP!
 */
 PHP_FUNCTION(expm1)
@@ -667,7 +667,7 @@ PHP_FUNCTION(expm1)
 /* {{{ proto float log1p(float number)
    Returns log(1 + number), computed in a way that accurate even when the value of number is close to zero */
 /*
-   WARNING: this function is expermental: it could change its name or
+   WARNING: this function is experimental: it could change its name or
    disappear in the next version of PHP!
 */
 PHP_FUNCTION(log1p)
index 172f41479712bec98e02ed127cd6fc41fad30d63..feaccb2a50f9febe5ee122128ca20c2e09aa1713 100644 (file)
@@ -999,7 +999,7 @@ use_double:
        if (elements) {
                array_init_size(rval, elements);
                /* we can't convert from packed to hash during unserialization, because
-                  reference to some zvals might be keept in var_hash (to support references) */
+                  reference to some zvals might be kept in var_hash (to support references) */
                zend_hash_real_init_mixed(Z_ARRVAL_P(rval));
        } else {
                ZVAL_EMPTY_ARRAY(rval);