From: Stanislav Malyshev Date: Mon, 16 Mar 2020 00:30:44 +0000 (-0700) Subject: Fix bug #79329 - get_headers should not accept \0 X-Git-Tag: php-7.3.17RC1~22 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=69fdc14152edefd75a33be7fe87d1194098c67f7;p=php Fix bug #79329 - get_headers should not accept \0 --- diff --git a/ext/standard/url.c b/ext/standard/url.c index 1117d6ed63..6880e40a01 100644 --- a/ext/standard/url.c +++ b/ext/standard/url.c @@ -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)