Doc #77798 [Ver->Csd]: No mention of json_(encode|decode) constant options availability

From: Date: Tue, 16 Apr 2019 18:37:00 +0000
Subject: Doc #77798 [Ver->Csd]: No mention of json_(encode|decode) constant options availability
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-16589@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=77798&edit=1 ID: 77798 Updated by: girgias@php.net Reported by: php at hatlak dot de Summary: No mention of json_(encode|decode) constant options availability -Status: Verified +Status: Closed Type: Documentation Problem Package: JSON related PHP Version: Irrelevant -Assigned To: +Assigned To: girgias Block user comment: N Private report: N Previous Comments: ------------------------------------------------------------------------ [2019-04-16 18:31:52] girgias@php.net Automatic comment from SVN on behalf of girgias Revision: http://svn.php.net/viewvc/?view=revision&revision=347250 Log: Add JSON constants to changelog. Fixes: Doc Bug #77798 Doc Bug #77811 Doc Bug #77881 ------------------------------------------------------------------------ [2019-03-27 16:26:13] girgias@php.net Related To: Bug #77811 ------------------------------------------------------------------------ [2019-03-26 14:56:12] php at hatlak dot de Personally I would have expected an entry in the Changelog section, telling that with PHP 7.3, support for JSON_THROW_ON_ERROR was added. It's not like the constants and the methods are in any way unrelated, you know... ------------------------------------------------------------------------ [2019-03-26 14:23:27] girgias@php.net Not sure what is the best approach to fix this, maybe a mention of checking the constant page for availability seems like a reasonable way to fix this. ------------------------------------------------------------------------ [2019-03-26 14:05:25] php at hatlak dot de Description: ------------ --- From manual page: https://php.net/function.json-decode --- Tried to use JSON_THROW_ON_ERROR with PHP 7.1. Only checked the Predefined Constants page once I got an error. The json_decode page should not just list available options constants as if it was independent from the PHP version used. Oh, and unrelated: The !"()/& bug report form kills the PHP version and summary once it displays WARNING: YOU MUST RE-UPLOAD YOUR PATCH, OR IT WILL BE IGNORED! Just noticed before blindly clicking "Send bug report" again as suggested. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=77798&edit=1

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