mirror of
https://github.com/php/php-src.git
synced 2025-08-18 15:08:55 +02:00
There is no error code set for json_last_error if an invalid utf8
sequence is encountered. This fixes that. Might be worthwhile to merge to 5.3 despite the new constant.
This commit is contained in:
parent
d1d69cc796
commit
f0fb480b13
2 changed files with 4 additions and 0 deletions
|
@ -24,6 +24,7 @@ enum error_codes {
|
|||
PHP_JSON_ERROR_STATE_MISMATCH,
|
||||
PHP_JSON_ERROR_CTRL_CHAR,
|
||||
PHP_JSON_ERROR_SYNTAX,
|
||||
PHP_JSON_ERROR_UTF8,
|
||||
};
|
||||
|
||||
extern JSON_parser new_JSON_parser(int depth);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue