]> granicus.if.org Git - php/commitdiff
Fix bug #69033 (Request may get env. variables from previous requests if PHP works...
authorFerenc Kovacs <tyrael@php.net>
Wed, 18 Feb 2015 14:27:27 +0000 (15:27 +0100)
committerFerenc Kovacs <tyrael@php.net>
Wed, 18 Feb 2015 15:24:09 +0000 (16:24 +0100)
NEWS
ext/standard/basic_functions.c

diff --git a/NEWS b/NEWS
index 5004990d31e93b1131ba1f7027259cc7c315f48f..bf8323d0483a6648633495f5eca673a2d1d2cb0c 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -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)
index 48ffb338003f687010f85cc3d6af8f67487027c4..cc22d6f48a5268d32c9c1dcacceaada2cfa495ec 100644 (file)
@@ -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;