From 632766a5612e0ae501787aa83a92eb764133c0fa Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Tue, 7 Jul 2020 08:59:19 +0200 Subject: Disallow separation in a number of callbacks All of these clearly do not need separation support. --- ext/pcre/php_pcre.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/pcre') diff --git a/ext/pcre/php_pcre.c b/ext/pcre/php_pcre.c index 122373dea3..7aaaf3f695 100644 --- a/ext/pcre/php_pcre.c +++ b/ext/pcre/php_pcre.c @@ -1529,7 +1529,7 @@ static zend_string *preg_do_repl_func(zend_fcall_info *fci, zend_fcall_info_cach fci->retval = &retval; fci->param_count = 1; fci->params = &arg; - fci->no_separation = 0; + fci->no_separation = 1; if (zend_call_function(fci, fcc) == SUCCESS && Z_TYPE(retval) != IS_UNDEF) { if (EXPECTED(Z_TYPE(retval) == IS_STRING)) { -- cgit v1.2.1