summaryrefslogtreecommitdiff
path: root/ext/json/php_json_scanner.h
diff options
context:
space:
mode:
Diffstat (limited to 'ext/json/php_json_scanner.h')
-rw-r--r--ext/json/php_json_scanner.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/json/php_json_scanner.h b/ext/json/php_json_scanner.h
index b90c25df44..b707e230eb 100644
--- a/ext/json/php_json_scanner.h
+++ b/ext/json/php_json_scanner.h
@@ -35,8 +35,10 @@ typedef struct _php_json_scanner {
zval value; /* value */
int str_esc; /* number of extra characters for escaping */
int state; /* condition state */
- int options; /* options */
+ 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;