Skip to content

Commit 03db04c

Browse files
committed
Accept null for preg_quote delimiter argument
Related to bug #78163.
1 parent 28808ca commit 03db04c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/pcre/php_pcre.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2419,7 +2419,7 @@ static PHP_FUNCTION(preg_quote)
24192419
ZEND_PARSE_PARAMETERS_START(1, 2)
24202420
Z_PARAM_STR(str)
24212421
Z_PARAM_OPTIONAL
2422-
Z_PARAM_STR(delim)
2422+
Z_PARAM_STR_EX(delim, 1, 0)
24232423
ZEND_PARSE_PARAMETERS_END();
24242424

24252425
/* Nothing to do if we got an empty string */

0 commit comments

Comments
 (0)