We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 15846ff commit 4089619Copy full SHA for 4089619
ext/standard/basic_functions.c
@@ -757,7 +757,7 @@ PHP_FUNCTION(getenv)
757
/* SAPI method returns an emalloc()'d string */
758
ptr = sapi_getenv(str, str_len);
759
if (ptr) {
760
- // TODO: avoid realocation ???
+ // TODO: avoid reallocation ???
761
RETVAL_STRING(ptr);
762
efree(ptr);
763
return;
@@ -775,7 +775,7 @@ PHP_FUNCTION(getenv)
775
}
776
777
SetLastError(0);
778
- /*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
779
the buffer size, in characters, required to hold the string and its terminating
780
null character. We use this return value to alloc the final buffer. */
781
size = GetEnvironmentVariableW(keyw, &dummybuf, 0);
0 commit comments