Browse Source

We can afford a larger stack here and other json parsers out there

go deeper than 128.
experimental/first_unicode_implementation
Rasmus Lerdorf 18 years ago
parent
commit
664bb141a1
  1. 2
      ext/json/JSON_parser.c

2
ext/json/JSON_parser.c

@ -206,7 +206,7 @@ static const int state_transition_table[30][31] = {
/* }}} */
#define JSON_PARSER_MAX_DEPTH 128
#define JSON_PARSER_MAX_DEPTH 512
/*
A stack maintains the states of nested structures.

Loading…
Cancel
Save