summaryrefslogtreecommitdiff
path: root/ext/json/json.c
diff options
context:
space:
mode:
authorJakub Zelenka <bukka@php.net>2015-02-02 19:53:32 +0000
committerJakub Zelenka <bukka@php.net>2015-02-02 19:53:32 +0000
commit3e4c1717ee4f4beb9c362942a113b90fff0a7fb0 (patch)
treef5da1649f6cfb5ae06b09b9cab4fd19a4446a767 /ext/json/json.c
parentb65205028a2debc50c3e2ca1572da4c74ac87834 (diff)
parent92576c7c49a3c104bc4aea4cfa378a029bb26c86 (diff)
downloadphp-git-3e4c1717ee4f4beb9c362942a113b90fff0a7fb0.tar.gz
Merge branch 'master' into jsond
Diffstat (limited to 'ext/json/json.c')
-rw-r--r--ext/json/json.c1
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();
}