diff options
author | Máté Kocsis <kocsismate@woohoolabs.com> | 2020-01-01 14:23:21 +0100 |
---|---|---|
committer | Máté Kocsis <kocsismate@woohoolabs.com> | 2020-01-01 14:23:21 +0100 |
commit | 9099dbd9614b37b48818ac24e2020b0d756b7e1e (patch) | |
tree | 5bd37e9e2bf937d3a8e480ff40a1c2063922d4a6 /ext/pcre | |
parent | 12ce73a5bb5554f45950b6bcf85100f0b2db960e (diff) | |
download | php-git-9099dbd9614b37b48818ac24e2020b0d756b7e1e.tar.gz |
Use RETURN_THROWS() after zend_type_error()
Diffstat (limited to 'ext/pcre')
-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 f5f1d6f70e..9305fca71c 100644 --- a/ext/pcre/php_pcre.c +++ b/ext/pcre/php_pcre.c @@ -2259,7 +2259,7 @@ static void preg_replace_common(INTERNAL_FUNCTION_PARAMETERS, int is_filter) } else { if (Z_TYPE_P(regex) != IS_ARRAY) { zend_type_error("Parameter mismatch, pattern is a string while replacement is an array"); - return; + RETURN_THROWS(); } } |