summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorFerenc Kovacs <tyrael@php.net>2015-02-18 15:27:27 +0100
committerFerenc Kovacs <tyrael@php.net>2015-02-18 16:24:09 +0100
commit08b6fe9ef135798aa16a894e5773f8cd76ab1fec (patch)
treeaeeec9e109491aebdb8eb2d122cfc5baac2aa018 /ext
parent83dda66aac10e7307f2e2f4e73a769b125a88451 (diff)
downloadphp-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.c3
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;