Doc #77881 [Opn->Ver]: JSON_INVALID_UTF8_(IGNORE|SUBSTITUTE) constants are not documented

From: Date: Tue, 16 Apr 2019 17:26:46 +0000
Subject: Doc #77881 [Opn->Ver]: JSON_INVALID_UTF8_(IGNORE|SUBSTITUTE) constants are not documented
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-16586@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=77881&edit=1 ID: 77881 Updated by: girgias@php.net Reported by: php at yopmail dot com -Summary: 7.2 JSON_INVALID_UTF8_(IGNORE|SUBSTITUTE) constants are not documented +Summary: JSON_INVALID_UTF8_(IGNORE|SUBSTITUTE) constants are not documented -Status: Open +Status: Verified Type: Documentation Problem Package: JSON related PHP Version: Irrelevant Block user comment: N Private report: N Previous Comments: ------------------------------------------------------------------------ [2019-04-12 08:55:54] php at yopmail dot com Description: ------------ https://github.com/php/php-src/pull/2606 introduced two new constants JSON_INVALID_UTF8_IGNORE and JSON_INVALID_UTF8_SUBSTITUTE for the json_decode() and json_encode() functions in PHP 7.2.0. They are only briefly mentioned in the "PHP 7 ChangeLog" https://www.php.net/ChangeLog-7.php and listed (without links) on the "Migrating from PHP 7.1.x to PHP 7.2.x" "New global constants" page https://www.php.net/manual/en/migration72.constants.php But there is no mention of them in the reference pages: * https://www.php.net/manual/en/json.constants.php * https://www.php.net/manual/en/function.json-decode.php * https://www.php.net/manual/en/function.json-encode.php (whereas there is for the JSON_THROW_ON_ERROR constant introduced later in PHP 7.3.0) ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=77881&edit=1

« previous php.doc.bugs (#16586) next »