summaryrefslogtreecommitdiff
path: root/ext/standard/basic_functions.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/standard/basic_functions.c')
-rw-r--r--ext/standard/basic_functions.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/ext/standard/basic_functions.c b/ext/standard/basic_functions.c
index 4c3e833188..ae83ec79e7 100644
--- a/ext/standard/basic_functions.c
+++ b/ext/standard/basic_functions.c
@@ -3383,13 +3383,11 @@ static void php_putenv_destructor(zval *zv) /* {{{ */
putenv_entry *pe = Z_PTR_P(zv);
if (pe->previous_value) {
-#if _MSC_VER >= 1300
- /* VS.Net has a bug in putenv() when setting a variable that
+ /* MSVCRT has a bug in putenv() when setting a variable that
* is already set; if the SetEnvironmentVariable() API call
* fails, the Crt will double free() a string.
* We try to avoid this by setting our own value first */
SetEnvironmentVariable(pe->key, "bugbug");
-#endif
putenv(pe->previous_value);
# if defined(PHP_WIN32)
efree(pe->previous_value);