[doc-en] master: Add missing constant to json-last-error
| From: | John Charman via Christian Weiske | Date: | Fri, 06 Mar 2026 07:29:58 +0000 |
| Subject: | [doc-en] master: Add missing constant to json-last-error | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-23171@lists.php.net to get a copy of this message | ||
Author: John Charman (charjr)
Committer: Christian Weiske (cweiske)
Date: 2026-03-06T08:29:56+01:00
Commit: https://github.com/php/doc-en/commit/058ea1e8420b9c1b24402af52545e8313428e1d1
Raw diff: https://github.com/php/doc-en/commit/058ea1e8420b9c1b24402af52545e8313428e1d1.diff
Add missing constant to json-last-error
Include JSON_ERROR_NON_BACKED_ENUM in json-last-error
Changed paths:
M reference/json/functions/json-last-error.xml
Diff:
diff --git a/reference/json/functions/json-last-error.xml
b/reference/json/functions/json-last-error.xml
index a72b68738f49..ead9a9fb2ae4 100644
--- a/reference/json/functions/json-last-error.xml
+++ b/reference/json/functions/json-last-error.xml
@@ -100,6 +100,11 @@
<entry>Malformed UTF-16 characters, possibly incorrectly encoded</entry>
<entry></entry>
</row>
+ <row>
+ <entry><constant>JSON_ERROR_NON_BACKED_ENUM</constant></entry>
+ <entry>Value contains a non-backed enum which cannot be serialized. Available as of PHP
8.1.0.</entry>
+ <entry></entry>
+ </row>
</tbody>
</tgroup>
</table>