summaryrefslogtreecommitdiff
path: root/ext/json/JSON_parser.h
diff options
context:
space:
mode:
authorScott MacVicar <scottmac@php.net>2009-07-27 03:43:38 +0000
committerScott MacVicar <scottmac@php.net>2009-07-27 03:43:38 +0000
commit87dbefa03b02c7ec6e79654a04fe3b8b285b0be7 (patch)
tree3455290d44a451404e7d9347f3b320274b37aaa6 /ext/json/JSON_parser.h
parent837732acc52c5d4a308915d97d792fcf0cb6aa06 (diff)
downloadphp-git-87dbefa03b02c7ec6e79654a04fe3b8b285b0be7.tar.gz
MFH: Add error constant when json_encode detects an invalid UTF-8 sequence.
Diffstat (limited to 'ext/json/JSON_parser.h')
-rw-r--r--ext/json/JSON_parser.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/json/JSON_parser.h b/ext/json/JSON_parser.h
index 771ba967ac..746190bb35 100644
--- a/ext/json/JSON_parser.h
+++ b/ext/json/JSON_parser.h
@@ -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);