From 408961987fe585557d759d39bea32d6a02ce0a97 Mon Sep 17 00:00:00 2001 From: "Christoph M. Becker" Date: Wed, 17 Jun 2020 16:45:12 +0200 Subject: [PATCH] Fix typos --- ext/standard/basic_functions.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 2.40.0