rasmus Thu May 24 22:37:59 2007 UTC Modified files: (Branch: PHP_5_2) /php-src/ext/json JSON_parser.c Log: I don't see any reason to leave the stack limitation at 20. We have reports of this limit being hit now and as far as I can tell bumping it to 128 isn't going break anything in the parser code. http://cvs.php.net/viewvc.cgi/php-src/ext/json/JSON_parser.c?r1=1.1.2.7&r2=1.1.2.8&diff_format=u Index: php-src/ext/json/JSON_parser.c diff -u php-src/ext/json/JSON_parser.c:1.1.2.7 php-src/ext/json/JSON_parser.c:1.1.2.8 --- php-src/ext/json/JSON_parser.c:1.1.2.7 Wed May 16 12:54:30 2007 +++ php-src/ext/json/JSON_parser.c Thu May 24 22:37:59 2007 @@ -201,7 +201,7 @@ /*29*/ {29,29,-1,-1,-1,-1,-1,-1, 3,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1} }; -#define JSON_PARSER_MAX_DEPTH 20 +#define JSON_PARSER_MAX_DEPTH 40 /*
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php