com php-src: Fix bug #69033 (Request may get env. variables from previous requests if PHP works as FastCGI): ext/standard/basic_functio ns.c
| From: | Ferenc Kovacs | Date: | Wed, 18 Feb 2015 18:09:36 +0000 |
| Subject: | com php-src: Fix bug #69033 (Request may get env. variables from previous requests if PHP works as FastCGI): ext/standard/basic_functio ns.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-85013@lists.php.net to get a copy of this message | ||
Commit: 09c5ab45a41cdd8ee64a6a5a93d6992c9e0a278e
Author: Ferenc Kovacs <tyrael@php.net> Wed, 18 Feb 2015 15:27:27 +0100
Parents: 296d03cbf790d8cf630f55addfa34ad7364381a1
Branches: PHP-5.6.6
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=09c5ab45a41cdd8ee64a6a5a93d6992c9e0a278e
Log:
Fix bug #69033 (Request may get env. variables from previous requests if PHP works as FastCGI)
Bugs:
https://bugs.php.net/69033
Changed paths:
M ext/standard/basic_functions.c
Diff:
diff --git a/ext/standard/basic_functions.c b/ext/standard/basic_functions.c
index 9778748..fdacba2 100644
--- a/ext/standard/basic_functions.c
+++ b/ext/standard/basic_functions.c
@@ -3404,6 +3404,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;