]> granicus.if.org Git - php/commitdiff
Fix typos
authorChristoph M. Becker <cmbecker69@gmx.de>
Wed, 17 Jun 2020 14:45:12 +0000 (16:45 +0200)
committerChristoph M. Becker <cmbecker69@gmx.de>
Wed, 17 Jun 2020 14:45:12 +0000 (16:45 +0200)
ext/standard/basic_functions.c

index 0a429963bd59d59110190d89a1810216376dcb5f..3c2c18db968026a1f2c6c4bee332bac6935c3405 100755 (executable)
@@ -757,7 +757,7 @@ PHP_FUNCTION(getenv)
                /* SAPI method returns an emalloc()'d string */
                ptr = sapi_getenv(str, str_len);
                if (ptr) {
-                       // TODO: avoid realocation ???
+                       // TODO: avoid reallocation ???
                        RETVAL_STRING(ptr);
                        efree(ptr);
                        return;
@@ -775,7 +775,7 @@ PHP_FUNCTION(getenv)
                }
 
                SetLastError(0);
-               /*If the given bugger is not large enough to hold the data, the return value is
+               /*If the given buffer is not large enough to hold the data, the return value is
                the buffer size,  in characters, required to hold the string and its terminating
                null character. We use this return value to alloc the final buffer. */
                size = GetEnvironmentVariableW(keyw, &dummybuf, 0);