diff options
author | Jakub Zelenka <bukka@php.net> | 2015-02-02 19:53:32 +0000 |
---|---|---|
committer | Jakub Zelenka <bukka@php.net> | 2015-02-02 19:53:32 +0000 |
commit | 3e4c1717ee4f4beb9c362942a113b90fff0a7fb0 (patch) | |
tree | f5da1649f6cfb5ae06b09b9cab4fd19a4446a767 /ext/json/json.c | |
parent | b65205028a2debc50c3e2ca1572da4c74ac87834 (diff) | |
parent | 92576c7c49a3c104bc4aea4cfa378a029bb26c86 (diff) | |
download | php-git-3e4c1717ee4f4beb9c362942a113b90fff0a7fb0.tar.gz |
Merge branch 'master' into jsond
Diffstat (limited to 'ext/json/json.c')
-rw-r--r-- | ext/json/json.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/json/json.c b/ext/json/json.c index b1de42a577..0f8fdfb132 100644 --- a/ext/json/json.c +++ b/ext/json/json.c @@ -246,6 +246,7 @@ static PHP_FUNCTION(json_decode) JSON_G(error_code) = 0; if (!str_len) { + JSON_G(error_code) = PHP_JSON_ERROR_SYNTAX; RETURN_NULL(); } |