summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorMitch Hagstrand <mhagstrand@gmail.com>2016-12-30 19:13:46 -0800
committerMitch Hagstrand <mhagstrand@gmail.com>2016-12-30 19:13:46 -0800
commit32ab889ea4e8367f1cd104e17cd4782564c5b5f7 (patch)
tree9e5851d841924405d37d4ab6fbd646d76c1dac49 /ext
parent07959c1cae8ef9b69ea6f0586259b7f37939bf4a (diff)
downloadphp-git-32ab889ea4e8367f1cd104e17cd4782564c5b5f7.tar.gz
Fix header_remove function, the name parameter is optional
Diffstat (limited to 'ext')
-rw-r--r--ext/standard/head.c1
1 files changed, 1 insertions, 0 deletions
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();