Skip to content

Commit d34b9cf

Browse files
TyraelJulien Pauli
authored and
Julien Pauli
committed
Fix bug #69033 (Request may get env. variables from previous requests if PHP works as FastCGI)
1 parent 07ec30f commit d34b9cf

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ext/standard/basic_functions.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3438,6 +3438,9 @@ static void php_putenv_destructor(putenv_entry *pe) /* {{{ */
34383438
unsetenv(pe->key);
34393439
# elif defined(PHP_WIN32)
34403440
SetEnvironmentVariable(pe->key, NULL);
3441+
# ifndef ZTS
3442+
_putenv_s(pe->key, "");
3443+
# endif
34413444
# else
34423445
char **env;
34433446

0 commit comments

Comments
 (0)