summaryrefslogtreecommitdiff
path: root/ext/pcre
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2021-01-14 11:58:08 +0100
committerNikita Popov <nikita.ppv@gmail.com>2021-01-14 11:58:08 +0100
commit1b2aba285db488852844c2eac484d35569ec4442 (patch)
treecbf5fd822e631029256af5b2baec363b384ae02f /ext/pcre
parentec58a6f1b062a0c09cd1ef4097f257d5c1bb5e4e (diff)
downloadphp-git-1b2aba285db488852844c2eac484d35569ec4442.tar.gz
Remove Z_PARAM separate params where they don't make sense
Separation can only possibly make sense for array parameters (or something that can contain arrays, like zval parameters). It never makes sense to separate a bool. The deref parameters are also of dubious utility, but leaving them for now.
Diffstat (limited to 'ext/pcre')
-rw-r--r--ext/pcre/php_pcre.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/pcre/php_pcre.c b/ext/pcre/php_pcre.c
index 4a796062ec..fae3eb0e76 100644
--- a/ext/pcre/php_pcre.c
+++ b/ext/pcre/php_pcre.c
@@ -2728,7 +2728,7 @@ PHP_FUNCTION(preg_quote)
ZEND_PARSE_PARAMETERS_START(1, 2)
Z_PARAM_STR(str)
Z_PARAM_OPTIONAL
- Z_PARAM_STR_EX(delim, 1, 0)
+ Z_PARAM_STR_OR_NULL(delim)
ZEND_PARSE_PARAMETERS_END();
/* Nothing to do if we got an empty string */