From 2466f3fea028601800722804c1f0c69b3acb5fce Mon Sep 17 00:00:00 2001 From: Kalle Sommer Nielsen Date: Thu, 25 Dec 2008 20:25:58 +0000 Subject: [PATCH] * Theres no actual PECL release for JSON where the json_last_error exists in, so lets just say 5.3.0 for now * Merge Simion's grammar changes to json_last_error * Fix typo in example git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@271882 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/json/functions/json-last-error.xml | 13 +++++++------ reference/json/versions.xml | 4 ++-- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/reference/json/functions/json-last-error.xml b/reference/json/functions/json-last-error.xml index d5511e52f0..35cdc53843 100644 --- a/reference/json/functions/json-last-error.xml +++ b/reference/json/functions/json-last-error.xml @@ -1,5 +1,5 @@ - + json_last_error @@ -25,7 +25,8 @@ &reftitle.returnvalues; - Returns an integer, the value can be one of the following: + Returns an integer, the value can be one of the following + constants: JSON error codes @@ -39,15 +40,15 @@ JSON_ERROR_NONE - No error have occured + No error has occured JSON_ERROR_DEPTH - The maximum stack depth have been exceeded + The maximum stack depth has been exceeded JSON_ERROR_CTRL_CHAR - Control character error, possibly wrongly encoded + Control character error, possibly incorrectly encoded JSON_ERROR_SYNTAX @@ -70,7 +71,7 @@ $json[] = '{"Organization": "PHP Documentation Team"}'; // An invalid json string which will cause an syntax -// error, in this cause we used ' instead of " for quotation +// error, in this case we used ' instead of " for quotation $json[] = "{'Organization': 'PHP Documentation Team'}"; diff --git a/reference/json/versions.xml b/reference/json/versions.xml index e081565d0d..6f72465471 100644 --- a/reference/json/versions.xml +++ b/reference/json/versions.xml @@ -1,12 +1,12 @@ - + - +