mirror of
https://github.com/php/php-src.git
synced 2025-01-26 05:34:32 +08:00
fix handling VAR vs VAR= in putenv
using _putenv_s eliminates behavior diff in TS/NTS
This commit is contained in:
parent
3be4e5d71a
commit
75286ece1a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user