Skip to content

Commit 3cb1be7

Browse files
committed
fix windows build
1 parent d8bf511 commit 3cb1be7

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

ext/standard/basic_functions.c

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4151,13 +4151,6 @@ PHP_FUNCTION(putenv)
41514151
&& _putenv(pe.putenv_string) == 0
41524152
# endif
41534153
) { /* success */
4154-
# if _MSC_VER < 1500
4155-
/* Yet another VC6 bug, unset may return env not found */
4156-
if (error_code != 0 ||
4157-
(error_code == 0 && GetLastError() == ERROR_ENVVAR_NOT_FOUND)) {
4158-
# else
4159-
if (error_code != 0) { /* success */
4160-
# endif
41614154
# endif
41624155
#endif
41634156
zend_hash_add(&BG(putenv_ht), pe.key, pe.key_len + 1, (void **) &pe, sizeof(putenv_entry), NULL);

0 commit comments

Comments
 (0)