rasmus Wed Jul 30 13:52:59 2008 UTC
Modified files: (Branch: PHP_5_3)
/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.2.1&r2=1.1.2.12.2.2&diff_format=u
Index: php-src/ext/json/JSON_parser.c
diff -u php-src/ext/json/JSON_parser.c:1.1.2.12.2.1
php-src/ext/json/JSON_parser.c:1.1.2.12.2.2
--- php-src/ext/json/JSON_parser.c:1.1.2.12.2.1 Sun Oct 7 05:22:04 2007
+++ php-src/ext/json/JSON_parser.c Wed Jul 30 13:52:59 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