cvs: phpdoc /en/reference/json versions.xml /en/reference/json/functions json-last-error.xml
| From: | Kalle Sommer Nielsen | Date: | Thu, 25 Dec 2008 20:25:59 +0000 |
| Subject: | cvs: phpdoc /en/reference/json versions.xml /en/reference/json/functions json-last-error.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-2827@lists.php.net to get a copy of this message | ||
kalle Thu Dec 25 20:25:59 2008 UTC
Modified files:
/phpdoc/en/reference/json/functions json-last-error.xml
/phpdoc/en/reference/json versions.xml
Log:
* 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
http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/json/functions/json-last-error.xml?r1=1.2&r2=1.3&diff_format=u
Index: phpdoc/en/reference/json/functions/json-last-error.xml
diff -u phpdoc/en/reference/json/functions/json-last-error.xml:1.2
phpdoc/en/reference/json/functions/json-last-error.xml:1.3
--- phpdoc/en/reference/json/functions/json-last-error.xml:1.2 Fri Dec 19 07:54:46 2008
+++ phpdoc/en/reference/json/functions/json-last-error.xml Thu Dec 25 20:25:58 2008
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.2 $ -->
+<!-- $Revision: 1.3 $ -->
<refentry xml:id="function.json-last-error" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>json_last_error</refname>
@@ -25,7 +25,8 @@
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
- Returns an integer, the value can be one of the following:
+ Returns an integer, the value can be one of the following
+ constants:
</para>
<table>
<title>JSON error codes</title>
@@ -39,15 +40,15 @@
<tbody>
<row>
<entry><constant>JSON_ERROR_NONE</constant></entry>
- <entry>No error have occured</entry>
+ <entry>No error has occured</entry>
</row>
<row>
<entry><constant>JSON_ERROR_DEPTH</constant></entry>
- <entry>The maximum stack depth have been exceeded</entry>
+ <entry>The maximum stack depth has been exceeded</entry>
</row>
<row>
<entry><constant>JSON_ERROR_CTRL_CHAR</constant></entry>
- <entry>Control character error, possibly wrongly encoded</entry>
+ <entry>Control character error, possibly incorrectly encoded</entry>
</row>
<row>
<entry><constant>JSON_ERROR_SYNTAX</constant></entry>
@@ -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'}";
http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/json/versions.xml?r1=1.2&r2=1.3&diff_format=u
Index: phpdoc/en/reference/json/versions.xml
diff -u phpdoc/en/reference/json/versions.xml:1.2 phpdoc/en/reference/json/versions.xml:1.3
--- phpdoc/en/reference/json/versions.xml:1.2 Fri Dec 19 07:52:28 2008
+++ phpdoc/en/reference/json/versions.xml Thu Dec 25 20:25:58 2008
@@ -1,12 +1,12 @@
<?xml version='1.0' encoding='utf-8'?>
-<!-- $Revision: 1.2 $ -->
+<!-- $Revision: 1.3 $ -->
<!--
Do NOT translate this file
-->
<versions>
<function name='json_decode' from='PHP 5 >= 5.2.0, PECL json >=
1.2.0'/>
<function name='json_encode' from='PHP 5 >= 5.2.0, PECL json >=
1.2.0'/>
- <function name='json_last_error' from='PHP 5 >= 5.3.0, PECL json
>= 1.2.2'/>
+ <function name='json_last_error' from='PHP 5 >= 5.3.0'/>
</versions>
<!-- Keep this comment at the end of the file