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 9ed82b1f7b
commit 2bc92a0cf7

View File

@ -669,7 +669,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)