com php-src: Fix bug #73526 (php_json_encode depth is sue): NEWS ext/json/json.c

From: Date: Sun, 20 Nov 2016 20:36:03 +0000
Subject: com php-src: Fix bug #73526 (php_json_encode depth is sue): NEWS ext/json/json.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-95915@lists.php.net to get a copy of this message
Commit: 60574ea1ac4790abe818c2c7510d0e391c12c06a Author: Jakub Zelenka <bukka@php.net> Sun, 20 Nov 2016 20:36:03 +0000 Parents: 685b1292e9a050ec413662c4b7dcf69030d2010c Branches: PHP-7.0 Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=60574ea1ac4790abe818c2c7510d0e391c12c06a Log: Fix bug #73526 (php_json_encode depth issue) Bugs: https://bugs.php.net/73526 Changed paths: M NEWS M ext/json/json.c Diff: diff --git a/NEWS b/NEWS index 3fe30bb..eeb9f58 100644 --- a/NEWS +++ b/NEWS @@ -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 61445ee..a58cb31 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; } /* }}} */

« previous php.cvs (#95915) next »