summaryrefslogtreecommitdiff
path: root/ext/json/json.c
diff options
context:
space:
mode:
authorMáté Kocsis <kocsismate@woohoolabs.com>2019-12-31 11:27:02 +0100
committerMáté Kocsis <kocsismate@woohoolabs.com>2019-12-31 11:46:11 +0100
commit345703724c633fb8c1b34e1299bf3375f000c398 (patch)
tree18da0e12163e82ce16fbee726df1839439a1edfa /ext/json/json.c
parentd9ac1ca8de298baf10f7c713c0b37c6ea5d89cf4 (diff)
downloadphp-git-345703724c633fb8c1b34e1299bf3375f000c398.tar.gz
Use RETURN_THROWS() during ZPP in most of the extensions
Except for some bigger ones: reflection, sodium, spl
Diffstat (limited to 'ext/json/json.c')
-rw-r--r--ext/json/json.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/json/json.c b/ext/json/json.c
index 5c97e9678d..9a8f259f01 100644
--- a/ext/json/json.c
+++ b/ext/json/json.c
@@ -340,7 +340,7 @@ static PHP_FUNCTION(json_decode)
static PHP_FUNCTION(json_last_error)
{
if (zend_parse_parameters_none() == FAILURE) {
- return;
+ RETURN_THROWS();
}
RETURN_LONG(JSON_G(error_code));
@@ -352,7 +352,7 @@ static PHP_FUNCTION(json_last_error)
static PHP_FUNCTION(json_last_error_msg)
{
if (zend_parse_parameters_none() == FAILURE) {
- return;
+ RETURN_THROWS();
}
RETURN_STRING(php_json_get_error_msg(JSON_G(error_code)));