From c65729614f8c01245e58a1141633f94843ebdef9 Mon Sep 17 00:00:00 2001 From: Kalle Sommer Nielsen Date: Thu, 18 Mar 2010 17:15:03 +0000 Subject: [PATCH] Fixed bug #51194 (Missing documentation for errorcode PHP_JSON_ERROR_UTF8) git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@296350 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/json/constants.xml | 12 ++++++++++++ reference/json/functions/json-last-error.xml | 10 ++++++++++ 2 files changed, 22 insertions(+) diff --git a/reference/json/constants.xml b/reference/json/constants.xml index 0b8133ab47..e1619d2cd8 100644 --- a/reference/json/constants.xml +++ b/reference/json/constants.xml @@ -54,6 +54,18 @@ + + + JSON_ERROR_UTF8 + (integer) + + + + Malformed UTF-8 characters, possibly incorrectly encoded. This + constant is available as of PHP 5.3.1. + + + diff --git a/reference/json/functions/json-last-error.xml b/reference/json/functions/json-last-error.xml index 9c2dfe21c2..f50cceee00 100644 --- a/reference/json/functions/json-last-error.xml +++ b/reference/json/functions/json-last-error.xml @@ -35,24 +35,34 @@ Constant Meaning + Availability JSON_ERROR_NONE No error has occurred + JSON_ERROR_DEPTH The maximum stack depth has been exceeded + JSON_ERROR_CTRL_CHAR Control character error, possibly incorrectly encoded + JSON_ERROR_SYNTAX Syntax error + + + + JSON_ERROR_UTF8 + Malformed UTF-8 characters, possibly incorrectly encoded + PHP 5.3.1