diff options
author | Ferenc Kovacs <tyrael@php.net> | 2015-02-18 15:27:27 +0100 |
---|---|---|
committer | Ferenc Kovacs <tyrael@php.net> | 2015-02-18 16:24:09 +0100 |
commit | 08b6fe9ef135798aa16a894e5773f8cd76ab1fec (patch) | |
tree | aeeec9e109491aebdb8eb2d122cfc5baac2aa018 /ext | |
parent | 83dda66aac10e7307f2e2f4e73a769b125a88451 (diff) | |
download | php-git-08b6fe9ef135798aa16a894e5773f8cd76ab1fec.tar.gz |
Fix bug #69033 (Request may get env. variables from previous requests if PHP works as FastCGI)
Diffstat (limited to 'ext')
-rw-r--r-- | ext/standard/basic_functions.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/standard/basic_functions.c b/ext/standard/basic_functions.c index 48ffb33800..cc22d6f48a 100644 --- a/ext/standard/basic_functions.c +++ b/ext/standard/basic_functions.c @@ -3433,6 +3433,9 @@ static void php_putenv_destructor(putenv_entry *pe) /* {{{ */ unsetenv(pe->key); # elif defined(PHP_WIN32) SetEnvironmentVariable(pe->key, NULL); +# ifndef ZTS + _putenv_s(pe->key, ""); +# endif # else char **env; |