From 3cb1be7a1b71f4a9f2852d471af0bbfef5308278 Mon Sep 17 00:00:00 2001 From: Ferenc Kovacs Date: Thu, 14 May 2015 02:02:08 +0200 Subject: fix windows build --- ext/standard/basic_functions.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/ext/standard/basic_functions.c b/ext/standard/basic_functions.c index 83d140e1e4..98a5bb6db6 100644 --- a/ext/standard/basic_functions.c +++ b/ext/standard/basic_functions.c @@ -4151,13 +4151,6 @@ PHP_FUNCTION(putenv) && _putenv(pe.putenv_string) == 0 # endif ) { /* success */ -# if _MSC_VER < 1500 - /* Yet another VC6 bug, unset may return env not found */ - if (error_code != 0 || - (error_code == 0 && GetLastError() == ERROR_ENVVAR_NOT_FOUND)) { -# else - if (error_code != 0) { /* success */ -# endif # endif #endif zend_hash_add(&BG(putenv_ht), pe.key, pe.key_len + 1, (void **) &pe, sizeof(putenv_entry), NULL); -- cgit v1.2.1