php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #69033
Patch bug69033_2.patch revision 2015-02-12 11:19 UTC by ab@php.net
Patch bug69033_1.patch revision 2015-02-12 09:22 UTC by ab@php.net

Patch bug69033_2.patch for Scripting Engine problem Bug #69033

Patch version 2015-02-12 11:19 UTC

Return to Bug #69033 | Download this patch
This patch renders other patches obsolete

Obsolete patches:

Patch Revisions:

Developer: ab@php.net

diff --git a/ext/standard/basic_functions.c b/ext/standard/basic_functions.c
index dad815b..d056cf8 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;
 
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Nov 21 17:01:32 2024 UTC