diff options
Diffstat (limited to 'ext/json/php_json_scanner.h')
-rw-r--r-- | ext/json/php_json_scanner.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/ext/json/php_json_scanner.h b/ext/json/php_json_scanner.h index f13483d2b7..28cef7ee87 100644 --- a/ext/json/php_json_scanner.h +++ b/ext/json/php_json_scanner.h @@ -34,9 +34,11 @@ typedef struct _php_json_scanner { php_json_ctype *pstr; /* string pointer for escapes conversion */ zval value; /* value */ int str_esc; /* number of extra characters for escaping */ - int state; /* condition state */ - int options; /* options */ + int state; /* condition state */ + int options; /* options */ php_json_error_code errcode; /* error type if there is an error */ + int utf8_invalid; /* whether utf8 is invalid */ + int utf8_invalid_count; /* number of extra character for invalid utf8 */ } php_json_scanner; |