reference/json/functions/json-last-error-msg.xml
9e3b30232be09c56bd18a766b2041da254ef95f0
...
...
@@ -1,6 +1,5 @@
1
1
<?xml version="1.0" encoding="utf-8"?>
2
2
<!-- $Revision$ -->
3
-

4
3
<refentry xml:id="function.json-last-error-msg" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
5
4
<refnamediv>
6
5
<refname>json_last_error_msg</refname>
...
...
@@ -11,10 +10,11 @@
11
10
&reftitle.description;
12
11
<methodsynopsis>
13
12
<type>string</type><methodname>json_last_error_msg</methodname>
14
-
<void />
13
+
<void/>
15
14
</methodsynopsis>
16
15
<para>
17
-

16
+
Returns the error string of the last <function>json_encode</function> or <function>json_decode</function>
17
+
call, which did not specify <constant>JSON_THROW_ON_ERROR</constant>.
18
18
</para>
19
19

20
20
</refsect1>
...
...
@@ -27,7 +27,8 @@
27
27
<refsect1 role="returnvalues">
28
28
&reftitle.returnvalues;
29
29
<para>
30
-
Returns the error message on success or &null; with wrong parameters.
30
+
Returns the error message on success, or <literal>"No error"</literal> if no
31
+
error has occurred.
31
32
</para>
32
33
</refsect1>
33
34

...
...
@@ -41,7 +42,6 @@
41
42
</refsect1>
42
43

43
44
</refentry>
44
-

45
45
<!-- Keep this comment at the end of the file
46
46
Local variables:
47
47
mode: sgml
48
48