From 32ab889ea4e8367f1cd104e17cd4782564c5b5f7 Mon Sep 17 00:00:00 2001 From: Mitch Hagstrand Date: Fri, 30 Dec 2016 19:13:46 -0800 Subject: [PATCH] Fix header_remove function, the name parameter is optional --- ext/standard/head.c | 1 + 1 file changed, 1 insertion(+) 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(); -- 2.50.1