com php-src: Fix bug #69033 (Request may get env. variables from previous requests if PHP works as FastCGI): NEWS ext/standard/basic_fu nctions.c

From: Date: Wed, 18 Feb 2015 15:24:09 +0000
Subject: com php-src: Fix bug #69033 (Request may get env. variables from previous requests if PHP works as FastCGI): NEWS ext/standard/basic_fu nctions.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-84991@lists.php.net to get a copy of this message
Commit: 08b6fe9ef135798aa16a894e5773f8cd76ab1fec Author: Ferenc Kovacs <tyrael@php.net> Wed, 18 Feb 2015 15:27:27 +0100 Parents: 83dda66aac10e7307f2e2f4e73a769b125a88451 Branches: PHP-5.5 Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=08b6fe9ef135798aa16a894e5773f8cd76ab1fec 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 NEWS M ext/standard/basic_functions.c Diff: diff --git a/NEWS b/NEWS index 5004990..bf8323d 100644 --- 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) diff --git a/ext/standard/basic_functions.c b/ext/standard/basic_functions.c index 48ffb33..cc22d6f 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;

« previous php.cvs (#84991) next »