Skip to content

Commit 08b6fe9

Browse files
committed
Fix bug #69033 (Request may get env. variables from previous requests if PHP works as FastCGI)
1 parent 83dda66 commit 08b6fe9

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

NEWS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,8 @@ PHP NEWS
9898
- Standard:
9999
. Fixed bug #65272 (flock() out parameter not set correctly in windows).
100100
(Daniel Lowrey)
101+
. Fixed bug #69033 (Request may get env. variables from previous requests
102+
if PHP works as FastCGI). (Anatol)
101103

102104
- Streams:
103105
. Fixed bug which caused call after final close on streams filter. (Bob)

ext/standard/basic_functions.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3433,6 +3433,9 @@ static void php_putenv_destructor(putenv_entry *pe) /* {{{ */
34333433
unsetenv(pe->key);
34343434
# elif defined(PHP_WIN32)
34353435
SetEnvironmentVariable(pe->key, NULL);
3436+
# ifndef ZTS
3437+
_putenv_s(pe->key, "");
3438+
# endif
34363439
# else
34373440
char **env;
34383441

0 commit comments

Comments
 (0)