]> granicus.if.org Git - php/commitdiff
Fix header_remove function, the name parameter is optional
authorMitch Hagstrand <mhagstrand@gmail.com>
Sat, 31 Dec 2016 03:13:46 +0000 (19:13 -0800)
committerMitch Hagstrand <mhagstrand@gmail.com>
Sat, 31 Dec 2016 03:13:46 +0000 (19:13 -0800)
ext/standard/head.c

index fc8e0692da92e8214de7b463611e5159946df207..32e1eadbb563f71087952b0af23de2e3449e7c2b 100644 (file)
@@ -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();