1
0
mirror of https://github.com/php/php-src.git synced 2026-04-23 16:08:35 +02:00

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 b9d32197cb
commit 335547a04d
+1 -1
View File
@@ -667,7 +667,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)