Fix bug #79329 - get_headers should not accept \0

This commit is contained in:
Stanislav Malyshev 2020-03-15 17:30:44 -07:00
parent 25238bdf60
commit 69fdc14152

View File

@ -672,7 +672,7 @@ PHP_FUNCTION(get_headers)
php_stream_context *context;
ZEND_PARSE_PARAMETERS_START(1, 3)
Z_PARAM_STRING(url, url_len)
Z_PARAM_PATH(url, url_len)
Z_PARAM_OPTIONAL
Z_PARAM_LONG(format)
Z_PARAM_RESOURCE_EX(zcontext, 1, 0)