summaryrefslogtreecommitdiff
path: root/ext/json
diff options
context:
space:
mode:
authorMáté Kocsis <kocsismate@woohoolabs.com>2020-01-02 10:35:31 +0100
committerMáté Kocsis <kocsismate@woohoolabs.com>2020-01-02 10:56:18 +0100
commit01a50778d1f67d038b3f23911c0b84bfe055d64f (patch)
tree3920485afb84a44a538d2f9cd01e0c1d8b6ba579 /ext/json
parenta6486088f8c98210b5676cd6fe337e205f6504b9 (diff)
downloadphp-git-01a50778d1f67d038b3f23911c0b84bfe055d64f.tar.gz
Use RETURN_THROWS() after zend_throw_exception() in most of the extensions
Diffstat (limited to 'ext/json')
-rw-r--r--ext/json/json.c2
1 files changed, 1 insertions, 1 deletions
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();
}
}