From: Mitch Hagstrand Date: Sat, 31 Dec 2016 03:13:46 +0000 (-0800) Subject: Fix header_remove function, the name parameter is optional X-Git-Tag: php-7.2.0alpha1~711^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=32ab889ea4e8367f1cd104e17cd4782564c5b5f7;p=php Fix header_remove function, the name parameter is optional --- diff --git a/ext/standard/head.c b/ext/standard/head.c index fc8e0692da..32e1eadbb5 100644 --- a/ext/standard/head.c +++ b/ext/standard/head.c @@ -62,6 +62,7 @@ PHP_FUNCTION(header_remove) size_t len = 0; ZEND_PARSE_PARAMETERS_START(0, 1) + Z_PARAM_OPTIONAL Z_PARAM_STRING(ctr.line, len) ZEND_PARSE_PARAMETERS_END();