mirror of
https://github.com/php/php-src.git
synced 2025-01-10 13:03:54 +08:00
Make putenv() return a proper error rather then NULL when invalid argument
is passed.
This commit is contained in:
parent
065e4d6550
commit
d89c38961b
@ -1402,6 +1402,9 @@ PHP_FUNCTION(putenv)
|
||||
RETURN_FALSE;
|
||||
}
|
||||
}
|
||||
|
||||
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Invalid parameter syntax.");
|
||||
RETURN_FALSE;
|
||||
}
|
||||
/* }}} */
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user