rasmus Wed Jul 30 13:55:27 2008 UTC Modified files: (Branch: PHP_5_2) /php-src/ext/json JSON_parser.c Log: We can afford a larger stack here and other json parsers out there go deeper than 128. http://cvs.php.net/viewvc.cgi/php-src/ext/json/JSON_parser.c?r1=1.1.2.12&r2=1.1.2.13&diff_format=u Index: php-src/ext/json/JSON_parser.c diff -u php-src/ext/json/JSON_parser.c:1.1.2.12 php-src/ext/json/JSON_parser.c:1.1.2.13 --- php-src/ext/json/JSON_parser.c:1.1.2.12 Wed Jun 13 17:56:41 2007 +++ php-src/ext/json/JSON_parser.c Wed Jul 30 13:55:27 2008 @@ -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 128 +#define JSON_PARSER_MAX_DEPTH 512 /*
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php