diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2019-06-17 13:30:15 +0200 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2019-06-17 13:30:15 +0200 |
commit | 03db04c3aba03fd55c94c9d834a6c151e351cfc5 (patch) | |
tree | 5d2d0f69c0439d7e725f3d7af161f76ac22f9d5c | |
parent | 28808ca96d202e63db0c407548f4fb7d4cb46d9f (diff) | |
download | php-git-03db04c3aba03fd55c94c9d834a6c151e351cfc5.tar.gz |
Accept null for preg_quote delimiter argument
Related to bug #78163.
-rw-r--r-- | ext/pcre/php_pcre.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/pcre/php_pcre.c b/ext/pcre/php_pcre.c index 2e827298a9..d7d186540a 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 */ |