summaryrefslogtreecommitdiff
path: root/ext/pcre/php_pcre.c
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2019-06-17 13:30:56 +0200
committerNikita Popov <nikita.ppv@gmail.com>2019-06-17 13:30:56 +0200
commit11b354dd54d7fe346b24a039abdb075f68996328 (patch)
tree702e5942cc989f0d08d5edef8409b9df60f06c96 /ext/pcre/php_pcre.c
parent9f0515c40c85d9c22cf46f7c42338354c398e4a7 (diff)
parent03db04c3aba03fd55c94c9d834a6c151e351cfc5 (diff)
downloadphp-git-11b354dd54d7fe346b24a039abdb075f68996328.tar.gz
Merge branch 'PHP-7.2' into PHP-7.3
Diffstat (limited to 'ext/pcre/php_pcre.c')
-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 637195b59c..a131ecd884 100644
--- a/ext/pcre/php_pcre.c
+++ b/ext/pcre/php_pcre.c
@@ -2683,7 +2683,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 */