diff options
Diffstat (limited to 'ext/json')
-rw-r--r-- | ext/json/json.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/json/json.c b/ext/json/json.c index 9a8f259f01..4645309741 100644 --- a/ext/json/json.c +++ b/ext/json/json.c @@ -314,12 +314,12 @@ static PHP_FUNCTION(json_decode) if (depth <= 0) { zend_value_error("Depth must be greater than zero"); - return; + RETURN_THROWS(); } if (depth > INT_MAX) { zend_value_error("Depth must be lower than %d", INT_MAX); - return; + RETURN_THROWS(); } /* For BC reasons, the bool $assoc overrides the long $options bit for PHP_JSON_OBJECT_AS_ARRAY */ |