2007-12-23 20:45:22 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2009-07-11 07:50:41 +00:00
|
|
|
<!-- $Revision$ -->
|
2007-12-23 20:45:22 +00:00
|
|
|
|
|
|
|
<appendix xml:id="json.constants" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
|
|
&reftitle.constants;
|
2008-12-19 07:52:29 +00:00
|
|
|
&extension.constants;
|
|
|
|
<para>
|
2008-12-24 15:01:09 +00:00
|
|
|
The following constants indicate the type of error returned by
|
2019-05-24 01:02:50 +00:00
|
|
|
<function>json_last_error</function> or stored as the <varname>code</varname>
|
|
|
|
of a <classname>JsonException</classname>.
|
2008-12-19 07:52:29 +00:00
|
|
|
</para>
|
|
|
|
<variablelist>
|
2012-02-28 13:22:09 +00:00
|
|
|
<varlistentry xml:id="constant.json-error-none">
|
2008-12-19 07:52:29 +00:00
|
|
|
<term>
|
|
|
|
<constant>JSON_ERROR_NONE</constant>
|
2019-04-16 17:56:04 +00:00
|
|
|
(&integer;)
|
2008-12-19 07:52:29 +00:00
|
|
|
</term>
|
|
|
|
<listitem>
|
|
|
|
<simpara>
|
2008-12-24 15:01:09 +00:00
|
|
|
No error has occurred.
|
2019-04-16 17:56:04 +00:00
|
|
|
Available as of PHP 5.3.0.
|
2008-12-19 07:52:29 +00:00
|
|
|
</simpara>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2012-02-28 13:22:09 +00:00
|
|
|
<varlistentry xml:id="constant.json-error-depth">
|
2008-12-19 07:52:29 +00:00
|
|
|
<term>
|
|
|
|
<constant>JSON_ERROR_DEPTH</constant>
|
2019-04-16 17:56:04 +00:00
|
|
|
(&integer;)
|
2008-12-19 07:52:29 +00:00
|
|
|
</term>
|
|
|
|
<listitem>
|
|
|
|
<simpara>
|
2008-12-24 15:01:09 +00:00
|
|
|
The maximum stack depth has been exceeded.
|
2019-04-16 17:56:04 +00:00
|
|
|
Available as of PHP 5.3.0.
|
2008-12-19 07:52:29 +00:00
|
|
|
</simpara>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2012-02-28 13:22:09 +00:00
|
|
|
<varlistentry xml:id="constant.json-error-state-mismatch">
|
2011-06-16 12:55:11 +00:00
|
|
|
<term>
|
|
|
|
<constant>JSON_ERROR_STATE_MISMATCH</constant>
|
2019-04-16 17:56:04 +00:00
|
|
|
(&integer;)
|
2011-06-16 12:55:11 +00:00
|
|
|
</term>
|
|
|
|
<listitem>
|
|
|
|
<simpara>
|
|
|
|
Occurs with underflow or with the modes mismatch.
|
2019-04-16 17:56:04 +00:00
|
|
|
Available as of PHP 5.3.0.
|
2011-06-16 12:55:11 +00:00
|
|
|
</simpara>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2012-02-28 13:22:09 +00:00
|
|
|
<varlistentry xml:id="constant.json-error-ctrl-char">
|
2008-12-19 07:52:29 +00:00
|
|
|
<term>
|
|
|
|
<constant>JSON_ERROR_CTRL_CHAR</constant>
|
2019-04-16 17:56:04 +00:00
|
|
|
(&integer;)
|
2008-12-19 07:52:29 +00:00
|
|
|
</term>
|
|
|
|
<listitem>
|
|
|
|
<simpara>
|
2008-12-24 15:01:09 +00:00
|
|
|
Control character error, possibly incorrectly encoded.
|
2019-04-16 17:56:04 +00:00
|
|
|
Available as of PHP 5.3.0.
|
2008-12-19 07:52:29 +00:00
|
|
|
</simpara>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2012-02-28 13:22:09 +00:00
|
|
|
<varlistentry xml:id="constant.json-error-syntax">
|
2008-12-19 07:52:29 +00:00
|
|
|
<term>
|
|
|
|
<constant>JSON_ERROR_SYNTAX</constant>
|
2019-04-16 17:56:04 +00:00
|
|
|
(&integer;)
|
2008-12-19 07:52:29 +00:00
|
|
|
</term>
|
|
|
|
<listitem>
|
|
|
|
<simpara>
|
|
|
|
Syntax error.
|
2019-04-16 17:56:04 +00:00
|
|
|
Available as of PHP 5.3.0.
|
2008-12-19 07:52:29 +00:00
|
|
|
</simpara>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2012-02-28 13:22:09 +00:00
|
|
|
<varlistentry xml:id="constant.json-error-utf8">
|
2010-03-18 17:15:03 +00:00
|
|
|
<term>
|
|
|
|
<constant>JSON_ERROR_UTF8</constant>
|
2019-04-16 17:56:04 +00:00
|
|
|
(&integer;)
|
2010-03-18 17:15:03 +00:00
|
|
|
</term>
|
|
|
|
<listitem>
|
|
|
|
<simpara>
|
2016-11-20 21:05:36 +00:00
|
|
|
Malformed UTF-8 characters, possibly incorrectly encoded.
|
2019-04-16 17:56:04 +00:00
|
|
|
Available as of PHP 5.3.3.
|
2010-03-18 17:15:03 +00:00
|
|
|
</simpara>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2013-10-01 19:51:11 +00:00
|
|
|
<varlistentry xml:id="constant.json-error-recursion">
|
|
|
|
<term>
|
|
|
|
<constant>JSON_ERROR_RECURSION</constant>
|
2019-04-16 17:56:04 +00:00
|
|
|
(&integer;)
|
2013-10-01 19:51:11 +00:00
|
|
|
</term>
|
|
|
|
<listitem>
|
2016-11-20 21:05:36 +00:00
|
|
|
<simpara>
|
2013-10-01 19:51:11 +00:00
|
|
|
The object or array passed to <function>json_encode</function> include
|
|
|
|
recursive references and cannot be encoded.
|
|
|
|
If the <constant>JSON_PARTIAL_OUTPUT_ON_ERROR</constant> option was
|
|
|
|
given, &null; will be encoded in the place of the recursive reference.
|
2019-04-16 17:56:04 +00:00
|
|
|
Available as of PHP 5.5.0.
|
2016-11-20 21:05:36 +00:00
|
|
|
</simpara>
|
2013-10-01 19:51:11 +00:00
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
<varlistentry xml:id="constant.json-error-inf-or-nan">
|
|
|
|
<term>
|
|
|
|
<constant>JSON_ERROR_INF_OR_NAN</constant>
|
2019-04-16 17:56:04 +00:00
|
|
|
(&integer;)
|
2013-10-01 19:51:11 +00:00
|
|
|
</term>
|
|
|
|
<listitem>
|
2016-11-20 21:05:36 +00:00
|
|
|
<simpara>
|
2013-10-01 19:51:11 +00:00
|
|
|
The value passed to <function>json_encode</function> includes either
|
|
|
|
<link linkend="language.types.float.nan"><constant>NAN</constant></link>
|
|
|
|
or <link linkend="function.is-infinite"><constant>INF</constant></link>.
|
|
|
|
If the <constant>JSON_PARTIAL_OUTPUT_ON_ERROR</constant> option was
|
2013-10-06 05:12:34 +00:00
|
|
|
given, <literal>0</literal> will be encoded in the place of these
|
|
|
|
special numbers.
|
2019-04-16 17:56:04 +00:00
|
|
|
Available as of PHP 5.5.0.
|
2016-11-20 21:05:36 +00:00
|
|
|
</simpara>
|
2013-10-01 19:51:11 +00:00
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
<varlistentry xml:id="constant.json-error-unsupported-type">
|
|
|
|
<term>
|
|
|
|
<constant>JSON_ERROR_UNSUPPORTED_TYPE</constant>
|
2019-04-16 17:56:04 +00:00
|
|
|
(&integer;)
|
2013-10-01 19:51:11 +00:00
|
|
|
</term>
|
|
|
|
<listitem>
|
2016-11-20 21:05:36 +00:00
|
|
|
<simpara>
|
2013-10-01 19:51:11 +00:00
|
|
|
A value of an unsupported type was given to
|
2019-04-16 17:56:04 +00:00
|
|
|
<function>json_encode</function>, such as a &resource;.
|
2013-10-01 19:51:11 +00:00
|
|
|
If the <constant>JSON_PARTIAL_OUTPUT_ON_ERROR</constant> option was
|
|
|
|
given, &null; will be encoded in the place of the unsupported value.
|
2019-04-16 17:56:04 +00:00
|
|
|
Available as of PHP 5.5.0.
|
2016-11-20 21:05:36 +00:00
|
|
|
</simpara>
|
2013-10-01 19:51:11 +00:00
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2016-11-15 11:56:38 +00:00
|
|
|
<varlistentry xml:id="constant.json-error-invalid-property-name">
|
|
|
|
<term>
|
|
|
|
<constant>JSON_ERROR_INVALID_PROPERTY_NAME</constant>
|
2019-04-16 17:56:04 +00:00
|
|
|
(&integer;)
|
2016-11-15 11:56:38 +00:00
|
|
|
</term>
|
|
|
|
<listitem>
|
2016-11-20 21:05:36 +00:00
|
|
|
<simpara>
|
|
|
|
A key starting with \u0000 character was in the string passed to
|
|
|
|
<function>json_decode</function> when decoding a JSON object into a PHP
|
|
|
|
object.
|
2019-04-16 17:56:04 +00:00
|
|
|
Available as of PHP 7.0.0.
|
2016-11-20 21:05:36 +00:00
|
|
|
</simpara>
|
2016-11-15 11:56:38 +00:00
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
<varlistentry xml:id="constant.json-error-utf16">
|
|
|
|
<term>
|
2017-06-06 10:07:20 +00:00
|
|
|
<constant>JSON_ERROR_UTF16</constant>
|
2019-04-16 17:56:04 +00:00
|
|
|
(&integer;)
|
2016-11-20 21:05:36 +00:00
|
|
|
</term>
|
|
|
|
<listitem>
|
|
|
|
<simpara>
|
|
|
|
Single unpaired UTF-16 surrogate in unicode escape contained in the
|
2020-01-01 10:02:15 +00:00
|
|
|
JSON string passed to <function>json_decode</function>.
|
2019-04-16 17:56:04 +00:00
|
|
|
Available as of PHP 7.0.0.
|
2016-11-20 21:05:36 +00:00
|
|
|
</simpara>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
</variablelist>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
The following constants can be combined to form options for
|
|
|
|
<function>json_decode</function>.
|
|
|
|
</para>
|
|
|
|
<variablelist>
|
|
|
|
<varlistentry xml:id="constant.json-bigint-as-string">
|
|
|
|
<term>
|
|
|
|
<constant>JSON_BIGINT_AS_STRING</constant>
|
2019-04-16 17:56:04 +00:00
|
|
|
(&integer;)
|
2016-11-15 11:56:38 +00:00
|
|
|
</term>
|
|
|
|
<listitem>
|
2016-11-20 21:05:36 +00:00
|
|
|
<simpara>
|
|
|
|
Decodes large integers as their original string value.
|
2019-04-16 17:56:04 +00:00
|
|
|
Available as of PHP 5.4.0.
|
2016-11-20 21:05:36 +00:00
|
|
|
</simpara>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
<varlistentry xml:id="constant.json-object-as-array">
|
|
|
|
<term>
|
|
|
|
<constant>JSON_OBJECT_AS_ARRAY</constant>
|
2019-04-16 17:56:04 +00:00
|
|
|
(&integer;)
|
2016-11-20 21:05:36 +00:00
|
|
|
</term>
|
|
|
|
<listitem>
|
|
|
|
<simpara>
|
|
|
|
Decodes JSON objects as PHP array. This option can be added automatically
|
|
|
|
by calling <function>json_decode</function> with the second parameter
|
|
|
|
equal to &true;.
|
2019-04-16 17:56:04 +00:00
|
|
|
Available as of PHP 5.4.0.
|
2016-11-20 21:05:36 +00:00
|
|
|
</simpara>
|
2016-11-15 11:56:38 +00:00
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2008-12-19 07:52:29 +00:00
|
|
|
</variablelist>
|
2009-03-19 15:42:54 +00:00
|
|
|
|
|
|
|
<para>
|
|
|
|
The following constants can be combined to form options for
|
2012-01-09 11:30:17 +00:00
|
|
|
<function>json_encode</function>.
|
2009-03-19 15:42:54 +00:00
|
|
|
</para>
|
|
|
|
<variablelist>
|
2012-02-28 13:22:09 +00:00
|
|
|
<varlistentry xml:id="constant.json-hex-tag">
|
2009-03-19 15:42:54 +00:00
|
|
|
<term>
|
|
|
|
<constant>JSON_HEX_TAG</constant>
|
2019-04-16 17:56:04 +00:00
|
|
|
(&integer;)
|
2009-03-19 15:42:54 +00:00
|
|
|
</term>
|
|
|
|
<listitem>
|
|
|
|
<simpara>
|
|
|
|
All < and > are converted to \u003C and \u003E.
|
2019-04-16 17:56:04 +00:00
|
|
|
Available as of PHP 5.3.0.
|
2009-03-19 15:42:54 +00:00
|
|
|
</simpara>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2012-02-28 13:22:09 +00:00
|
|
|
<varlistentry xml:id="constant.json-hex-amp">
|
2009-03-19 15:42:54 +00:00
|
|
|
<term>
|
|
|
|
<constant>JSON_HEX_AMP</constant>
|
2019-04-16 17:56:04 +00:00
|
|
|
(&integer;)
|
2009-03-19 15:42:54 +00:00
|
|
|
</term>
|
|
|
|
<listitem>
|
|
|
|
<simpara>
|
2019-04-16 17:56:04 +00:00
|
|
|
All & are converted to \u0026.
|
|
|
|
Available as of PHP 5.3.0.
|
2009-03-19 15:42:54 +00:00
|
|
|
</simpara>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2012-02-28 13:22:09 +00:00
|
|
|
<varlistentry xml:id="constant.json-hex-apos">
|
2009-03-19 15:42:54 +00:00
|
|
|
<term>
|
|
|
|
<constant>JSON_HEX_APOS</constant>
|
2019-04-16 17:56:04 +00:00
|
|
|
(&integer;)
|
2009-03-19 15:42:54 +00:00
|
|
|
</term>
|
|
|
|
<listitem>
|
|
|
|
<simpara>
|
|
|
|
All ' are converted to \u0027.
|
2019-04-16 17:56:04 +00:00
|
|
|
Available as of PHP 5.3.0.
|
2009-03-19 15:42:54 +00:00
|
|
|
</simpara>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2012-02-28 13:22:09 +00:00
|
|
|
<varlistentry xml:id="constant.json-hex-quot">
|
2009-03-19 15:42:54 +00:00
|
|
|
<term>
|
|
|
|
<constant>JSON_HEX_QUOT</constant>
|
2019-04-16 17:56:04 +00:00
|
|
|
(&integer;)
|
2009-03-19 15:42:54 +00:00
|
|
|
</term>
|
|
|
|
<listitem>
|
|
|
|
<simpara>
|
|
|
|
All " are converted to \u0022.
|
2019-04-16 17:56:04 +00:00
|
|
|
Available as of PHP 5.3.0.
|
2009-03-19 15:42:54 +00:00
|
|
|
</simpara>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2012-02-28 13:22:09 +00:00
|
|
|
<varlistentry xml:id="constant.json-force-object">
|
2009-03-19 15:42:54 +00:00
|
|
|
<term>
|
|
|
|
<constant>JSON_FORCE_OBJECT</constant>
|
2019-04-16 17:56:04 +00:00
|
|
|
(&integer;)
|
2009-03-19 15:42:54 +00:00
|
|
|
</term>
|
|
|
|
<listitem>
|
|
|
|
<simpara>
|
|
|
|
Outputs an object rather than an array when a non-associative array is
|
|
|
|
used. Especially useful when the recipient of the output is expecting
|
|
|
|
an object and the array is empty.
|
2019-04-16 17:56:04 +00:00
|
|
|
Available as of PHP 5.3.0.
|
2009-03-19 15:42:54 +00:00
|
|
|
</simpara>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2012-02-28 13:22:09 +00:00
|
|
|
<varlistentry xml:id="constant.json-numeric-check">
|
2011-06-16 12:55:11 +00:00
|
|
|
<term>
|
|
|
|
<constant>JSON_NUMERIC_CHECK</constant>
|
2019-04-16 17:56:04 +00:00
|
|
|
(&integer;)
|
2011-06-16 12:55:11 +00:00
|
|
|
</term>
|
|
|
|
<listitem>
|
|
|
|
<simpara>
|
|
|
|
Encodes numeric strings as numbers.
|
2019-04-16 17:56:04 +00:00
|
|
|
Available as of PHP 5.3.3.
|
2011-06-16 12:55:11 +00:00
|
|
|
</simpara>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2012-02-28 13:22:09 +00:00
|
|
|
<varlistentry xml:id="constant.json-pretty-print">
|
2011-06-30 14:02:46 +00:00
|
|
|
<term>
|
|
|
|
<constant>JSON_PRETTY_PRINT</constant>
|
2019-04-16 17:56:04 +00:00
|
|
|
(&integer;)
|
2011-06-30 14:02:46 +00:00
|
|
|
</term>
|
|
|
|
<listitem>
|
|
|
|
<simpara>
|
|
|
|
Use whitespace in returned data to format it.
|
2019-04-16 17:56:04 +00:00
|
|
|
Available as of PHP 5.4.0.
|
2011-06-30 14:02:46 +00:00
|
|
|
</simpara>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2012-02-28 13:22:09 +00:00
|
|
|
<varlistentry xml:id="constant.json-unescaped-slashes">
|
2011-06-30 14:02:46 +00:00
|
|
|
<term>
|
|
|
|
<constant>JSON_UNESCAPED_SLASHES</constant>
|
2019-04-16 17:56:04 +00:00
|
|
|
(&integer;)
|
2011-06-30 14:02:46 +00:00
|
|
|
</term>
|
|
|
|
<listitem>
|
|
|
|
<simpara>
|
|
|
|
Don't escape <literal>/</literal>.
|
2019-04-16 17:56:04 +00:00
|
|
|
Available as of PHP 5.4.0.
|
2011-06-30 14:02:46 +00:00
|
|
|
</simpara>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2012-02-28 13:22:09 +00:00
|
|
|
<varlistentry xml:id="constant.json-unescaped-unicode">
|
2011-08-29 16:22:02 +00:00
|
|
|
<term>
|
|
|
|
<constant>JSON_UNESCAPED_UNICODE</constant>
|
2019-04-16 17:56:04 +00:00
|
|
|
(&integer;)
|
2011-08-29 16:22:02 +00:00
|
|
|
</term>
|
|
|
|
<listitem>
|
|
|
|
<simpara>
|
2016-11-20 21:05:36 +00:00
|
|
|
Encode multibyte Unicode characters literally (default is to escape as
|
|
|
|
\uXXXX).
|
2019-04-16 17:56:04 +00:00
|
|
|
Available as of PHP 5.4.0.
|
2011-08-29 16:22:02 +00:00
|
|
|
</simpara>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2015-08-15 14:34:32 +00:00
|
|
|
<varlistentry xml:id="constant.json-partial-output-on-error">
|
|
|
|
<term>
|
|
|
|
<constant>JSON_PARTIAL_OUTPUT_ON_ERROR</constant>
|
2019-04-16 17:56:04 +00:00
|
|
|
(&integer;)
|
2015-08-15 14:34:32 +00:00
|
|
|
</term>
|
|
|
|
<listitem>
|
|
|
|
<simpara>
|
|
|
|
Substitute some unencodable values instead of failing.
|
2019-04-16 17:56:04 +00:00
|
|
|
Available as of PHP 5.5.0.
|
2015-08-15 14:34:32 +00:00
|
|
|
</simpara>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2016-11-20 21:05:36 +00:00
|
|
|
<varlistentry xml:id="constant.json-preserve-zero-fraction">
|
2015-04-13 14:21:21 +00:00
|
|
|
<term>
|
|
|
|
<constant>JSON_PRESERVE_ZERO_FRACTION</constant>
|
2019-04-16 17:56:04 +00:00
|
|
|
(&integer;)
|
2015-04-13 14:21:21 +00:00
|
|
|
</term>
|
|
|
|
<listitem>
|
|
|
|
<simpara>
|
2019-04-16 17:56:04 +00:00
|
|
|
Ensures that &float; values are always encoded as a float value.
|
|
|
|
Available as of PHP 5.6.6.
|
2015-04-13 14:21:21 +00:00
|
|
|
</simpara>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2016-11-20 21:05:36 +00:00
|
|
|
<varlistentry xml:id="constant.json-unescaped-line-terminators">
|
|
|
|
<term>
|
|
|
|
<constant>JSON_UNESCAPED_LINE_TERMINATORS</constant>
|
2019-04-16 17:56:04 +00:00
|
|
|
(&integer;)
|
2016-11-20 21:05:36 +00:00
|
|
|
</term>
|
|
|
|
<listitem>
|
|
|
|
<simpara>
|
|
|
|
The line terminators are kept unescaped when
|
|
|
|
<constant>JSON_UNESCAPED_UNICODE</constant> is supplied. It uses the same
|
|
|
|
behaviour as it was before PHP 7.1 without this constant.
|
2019-04-16 17:56:04 +00:00
|
|
|
Available as of PHP 7.1.0.
|
2016-11-20 21:05:36 +00:00
|
|
|
</simpara>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2018-09-29 12:11:06 +00:00
|
|
|
</variablelist>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
The following constants can be combined to form options for
|
|
|
|
<function>json_decode</function> and <function>json_encode</function>.
|
|
|
|
</para>
|
|
|
|
<variablelist>
|
2019-04-16 18:14:22 +00:00
|
|
|
<varlistentry xml:id="constant.json-invalid-utf8-ignore">
|
|
|
|
<term>
|
|
|
|
<constant>JSON_INVALID_UTF8_IGNORE</constant>
|
|
|
|
(&integer;)
|
|
|
|
</term>
|
|
|
|
<listitem>
|
|
|
|
<simpara>
|
|
|
|
Ignore invalid UTF-8 characters.
|
|
|
|
Available as of PHP 7.2.0.
|
|
|
|
</simpara>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
<varlistentry xml:id="constant.json-invalid-utf8-substitute">
|
|
|
|
<term>
|
|
|
|
<constant>JSON_INVALID_UTF8_SUBSTITUTE</constant>
|
|
|
|
(&integer;)
|
|
|
|
</term>
|
|
|
|
<listitem>
|
|
|
|
<simpara>
|
|
|
|
Convert invalid UTF-8 characters to \0xfffd
|
|
|
|
(Unicode Character 'REPLACEMENT CHARACTER')
|
|
|
|
Available as of PHP 7.2.0.
|
|
|
|
</simpara>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2018-09-29 12:01:27 +00:00
|
|
|
<varlistentry xml:id="constant.json-throw-on-error">
|
|
|
|
<term>
|
|
|
|
<constant>JSON_THROW_ON_ERROR</constant>
|
2019-04-16 17:56:04 +00:00
|
|
|
(&integer;)
|
2018-09-29 12:01:27 +00:00
|
|
|
</term>
|
|
|
|
<listitem>
|
|
|
|
<simpara>
|
|
|
|
Throws <classname>JsonException</classname> if an error occurs instead
|
|
|
|
of setting the global error state that is retrieved with
|
2019-05-11 12:24:24 +00:00
|
|
|
<function>json_last_error</function> and <function>json_last_error_msg</function>.
|
2018-09-29 12:01:27 +00:00
|
|
|
<constant>JSON_PARTIAL_OUTPUT_ON_ERROR</constant> takes precedence over
|
2019-04-16 17:56:04 +00:00
|
|
|
<constant>JSON_THROW_ON_ERROR</constant>.
|
|
|
|
Available as of PHP 7.3.0.
|
2018-09-29 12:01:27 +00:00
|
|
|
</simpara>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2009-03-19 15:42:54 +00:00
|
|
|
</variablelist>
|
2016-11-20 21:05:36 +00:00
|
|
|
|
2007-12-23 20:45:22 +00:00
|
|
|
</appendix>
|
2008-12-24 15:01:09 +00:00
|
|
|
|
2007-12-23 20:45:22 +00:00
|
|
|
<!-- Keep this comment at the end of the file
|
|
|
|
Local variables:
|
|
|
|
mode: sgml
|
|
|
|
sgml-omittag:t
|
|
|
|
sgml-shorttag:t
|
|
|
|
sgml-minimize-attributes:nil
|
|
|
|
sgml-always-quote-attributes:t
|
|
|
|
sgml-indent-step:1
|
|
|
|
sgml-indent-data:t
|
|
|
|
indent-tabs-mode:nil
|
|
|
|
sgml-parent-document:nil
|
2009-09-25 07:04:39 +00:00
|
|
|
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
|
2007-12-23 20:45:22 +00:00
|
|
|
sgml-exposed-tags:nil
|
|
|
|
sgml-local-catalogs:nil
|
|
|
|
sgml-local-ecat-files:nil
|
|
|
|
End:
|
|
|
|
vim600: syn=xml fen fdm=syntax fdl=2 si
|
|
|
|
vim: et tw=78 syn=sgml
|
|
|
|
vi: ts=1 sw=1
|
|
|
|
-->
|