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 | |
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)
-rw-r--r-- | NEWS | 2 | ||||
-rw-r--r-- | ext/standard/basic_functions.c | 3 |
2 files changed, 5 insertions, 0 deletions
@@ -98,6 +98,8 @@ PHP NEWS - Standard: . Fixed bug #65272 (flock() out parameter not set correctly in windows). (Daniel Lowrey) + . Fixed bug #69033 (Request may get env. variables from previous requests + if PHP works as FastCGI). (Anatol) - Streams: . Fixed bug which caused call after final close on streams filter. (Bob) 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; |