Skip to content

Commit e95afee

Browse files
committed
Merge branch 'pull-request/2264'
* pull-request/2264: Fix header_remove function, the name parameter is optional
2 parents 07959c1 + 32ab889 commit e95afee

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ext/standard/head.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ PHP_FUNCTION(header_remove)
6262
size_t len = 0;
6363

6464
ZEND_PARSE_PARAMETERS_START(0, 1)
65+
Z_PARAM_OPTIONAL
6566
Z_PARAM_STRING(ctr.line, len)
6667
ZEND_PARSE_PARAMETERS_END();
6768

0 commit comments

Comments
 (0)