From 01a50778d1f67d038b3f23911c0b84bfe055d64f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1t=C3=A9=20Kocsis?= Date: Thu, 2 Jan 2020 10:35:31 +0100 Subject: Use RETURN_THROWS() after zend_throw_exception() in most of the extensions --- ext/json/json.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/json') diff --git a/ext/json/json.c b/ext/json/json.c index 4645309741..06e485bfe4 100644 --- a/ext/json/json.c +++ b/ext/json/json.c @@ -268,7 +268,7 @@ static PHP_FUNCTION(json_encode) if (encoder.error_code != PHP_JSON_ERROR_NONE) { smart_str_free(&buf); zend_throw_exception(php_json_exception_ce, php_json_get_error_msg(encoder.error_code), encoder.error_code); - RETURN_FALSE; + RETURN_THROWS(); } } -- cgit v1.2.1