From 9099dbd9614b37b48818ac24e2020b0d756b7e1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1t=C3=A9=20Kocsis?= Date: Wed, 1 Jan 2020 14:23:21 +0100 Subject: Use RETURN_THROWS() after zend_type_error() --- ext/pcre/php_pcre.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/pcre/php_pcre.c') 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(); } } -- cgit v1.2.1