From: Christoph M. Becker Date: Wed, 17 Jun 2020 14:45:12 +0000 (+0200) Subject: Fix typos X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=408961987fe585557d759d39bea32d6a02ce0a97;p=php Fix typos --- diff --git a/ext/standard/basic_functions.c b/ext/standard/basic_functions.c index 0a429963bd..3c2c18db96 100755 --- a/ext/standard/basic_functions.c +++ b/ext/standard/basic_functions.c @@ -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);