diff options
Diffstat (limited to 'ext/json/JSON_parser.h')
-rw-r--r-- | ext/json/JSON_parser.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/json/JSON_parser.h b/ext/json/JSON_parser.h index 0ed7e52a8f..771ba967ac 100644 --- a/ext/json/JSON_parser.h +++ b/ext/json/JSON_parser.h @@ -6,7 +6,7 @@ #include "php.h" #include "ext/standard/php_smart_str.h" -#define JSON_PARSER_MAX_DEPTH 512 +#define JSON_PARSER_DEFAULT_DEPTH 512 typedef struct JSON_parser_struct { int state; @@ -14,8 +14,8 @@ typedef struct JSON_parser_struct { int top; int error_code; int* stack; - zval *the_zstack[JSON_PARSER_MAX_DEPTH]; - + zval **the_zstack; + zval *the_static_zstack[JSON_PARSER_DEFAULT_DEPTH]; } * JSON_parser; enum error_codes { |