From 03db04c3aba03fd55c94c9d834a6c151e351cfc5 Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Mon, 17 Jun 2019 13:30:15 +0200 Subject: [PATCH] Accept null for preg_quote delimiter argument Related to bug #78163. --- ext/pcre/php_pcre.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/pcre/php_pcre.c b/ext/pcre/php_pcre.c index 2e827298a97..d7d186540ab 100644 --- a/ext/pcre/php_pcre.c +++ b/ext/pcre/php_pcre.c @@ -2419,7 +2419,7 @@ static PHP_FUNCTION(preg_quote) ZEND_PARSE_PARAMETERS_START(1, 2) Z_PARAM_STR(str) Z_PARAM_OPTIONAL - Z_PARAM_STR(delim) + Z_PARAM_STR_EX(delim, 1, 0) ZEND_PARSE_PARAMETERS_END(); /* Nothing to do if we got an empty string */