diff options
-rw-r--r-- | NEWS | 3 | ||||
-rw-r--r-- | ext/json/json.c | 2 |
2 files changed, 4 insertions, 1 deletions
@@ -17,6 +17,9 @@ PHP NEWS This may be enabled again using envirionment variable USE_ZEND_DTRACE=1. (Dmitry) +- JSON: + . Fixed bug #73526 (php_json_encode depth issue). (Jakub Zelenka) + - Mysqlnd: . Fixed bug #64526 (Add missing mysqlnd.* parameters to php.ini-*). (cmb) 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; } /* }}} */ |