Skip to content

Commit ad4d022

Browse files
committed
Merge branch 'PHP-5.5' into PHP-5.6
* PHP-5.5: fix handling VAR vs VAR= in putenv
2 parents 59a78d4 + 75286ec commit ad4d022

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/standard/basic_functions.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4120,7 +4120,7 @@ PHP_FUNCTION(putenv)
41204120
Obviously the CRT version will be useful more often. But
41214121
generally, doing both brings us on the safe track at least
41224122
in NTS build. */
4123-
&& _putenv(pe.putenv_string) == 0
4123+
&& _putenv_s(pe.key, value ? value : "") == 0
41244124
# endif
41254125
) { /* success */
41264126
# endif

0 commit comments

Comments
 (0)