fix handling VAR vs VAR= in putenv

using _putenv_s eliminates behavior diff in TS/NTS
This commit is contained in:
Anatol Belski 2015-05-21 08:19:54 +02:00
parent 3be4e5d71a
commit 75286ece1a

View File

@ -4148,7 +4148,7 @@ PHP_FUNCTION(putenv)
Obviously the CRT version will be useful more often. But
generally, doing both brings us on the safe track at least
in NTS build. */
&& _putenv(pe.putenv_string) == 0
&& _putenv_s(pe.key, value ? value : "") == 0
# endif
) { /* success */
# endif