summaryrefslogtreecommitdiff
path: root/ext/json/json.c
diff options
context:
space:
mode:
authorJakub Zelenka <bukka@php.net>2016-11-20 20:36:03 +0000
committerJakub Zelenka <bukka@php.net>2016-11-20 20:36:03 +0000
commit60574ea1ac4790abe818c2c7510d0e391c12c06a (patch)
tree844c5a979fcb765c3eae1c0e8dc7d38102fcfe47 /ext/json/json.c
parent685b1292e9a050ec413662c4b7dcf69030d2010c (diff)
downloadphp-git-60574ea1ac4790abe818c2c7510d0e391c12c06a.tar.gz
Fix bug #73526 (php_json_encode depth issue)
Diffstat (limited to 'ext/json/json.c')
-rw-r--r--ext/json/json.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/json/json.c b/ext/json/json.c
index 61445ee114..a58cb31275 100644
--- a/ext/json/json.c
+++ b/ext/json/json.c
@@ -148,7 +148,7 @@ static PHP_GINIT_FUNCTION(json)
#endif
json_globals->encoder_depth = 0;
json_globals->error_code = 0;
- json_globals->encode_max_depth = 0;
+ json_globals->encode_max_depth = PHP_JSON_PARSER_DEFAULT_DEPTH;
}
/* }}} */