diff options
author | Ferenc Kovacs <tyrael@php.net> | 2015-02-18 15:27:27 +0100 |
---|---|---|
committer | Julien Pauli <jpauli@php.net> | 2015-02-18 16:36:43 +0100 |
commit | d34b9cf93d19282e6fafa2ad850c65b295f99f75 (patch) | |
tree | 3f90fd4c7e5b12156ad491911f0c557d336c22b0 | |
parent | 07ec30fdf86d6f8af10c5c76d0ae94be95d30f55 (diff) | |
download | php-git-d34b9cf93d19282e6fafa2ad850c65b295f99f75.tar.gz |
Fix bug #69033 (Request may get env. variables from previous requests if PHP works as FastCGI)
-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 df696c5ddd..f7513352b8 100644 --- a/ext/standard/basic_functions.c +++ b/ext/standard/basic_functions.c @@ -3438,6 +3438,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; |