We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 96ea59b commit aa088cbCopy full SHA for aa088cb
1 file changed
ext/standard/basic_functions.c
@@ -739,14 +739,9 @@ PHP_FUNCTION(putenv)
739
#endif
740
741
ZEND_PARSE_PARAMETERS_START(1, 1)
742
- Z_PARAM_STRING(setting, setting_len)
+ Z_PARAM_PATH(setting, setting_len)
743
ZEND_PARSE_PARAMETERS_END();
744
745
- if (UNEXPECTED(zend_char_has_nul_byte(setting, setting_len))) {
746
- zend_argument_value_error(1, "must not contain any null bytes");
747
- RETURN_THROWS();
748
- }
749
-
750
if (setting_len == 0 || setting[0] == '=') {
751
zend_argument_value_error(1, "must have a valid syntax");
752
RETURN_THROWS();
0 commit comments