From 589d0e0f187ff82f90110057f624c958f0d3ec86 Mon Sep 17 00:00:00 2001 From: Xinchen Hui Date: Fri, 22 Apr 2016 21:41:44 -0700 Subject: Fixed bug #72069 (Behavior \JsonSerializable different from json_encode) --- ext/json/json.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/json/json.c') diff --git a/ext/json/json.c b/ext/json/json.c index 81258cb734..6571bf99f0 100644 --- a/ext/json/json.c +++ b/ext/json/json.c @@ -253,7 +253,7 @@ static PHP_FUNCTION(json_decode) return; } - JSON_G(error_code) = 0; + JSON_G(error_code) = PHP_JSON_ERROR_NONE; if (!str_len) { JSON_G(error_code) = PHP_JSON_ERROR_SYNTAX; -- cgit v1.2.1