summaryrefslogtreecommitdiff
path: root/ext/json/JSON_parser.c
diff options
context:
space:
mode:
authorRasmus Lerdorf <rasmus@php.net>2007-05-24 22:37:59 +0000
committerRasmus Lerdorf <rasmus@php.net>2007-05-24 22:37:59 +0000
commit464d87e58b3543c12d085b6ba85b3478ffa39dd0 (patch)
tree750bc0e29903b7228b480ef61b69d047499b4b5e /ext/json/JSON_parser.c
parentefcdcd80b696c2e851dd72fcb61f5902f96e9261 (diff)
downloadphp-git-464d87e58b3543c12d085b6ba85b3478ffa39dd0.tar.gz
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.
Diffstat (limited to 'ext/json/JSON_parser.c')
-rw-r--r--ext/json/JSON_parser.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/json/JSON_parser.c b/ext/json/JSON_parser.c
index ae8e7522e0..15424dffcb 100644
--- a/ext/json/JSON_parser.c
+++ b/ext/json/JSON_parser.c
@@ -201,7 +201,7 @@ static const int state_transition_table[30][31] = {
/*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
/*