Doc #77798 [Ver]: No mention of json_(encode|decode) constant options availability
| From: | php at hatlak dot de | Date: | Tue, 26 Mar 2019 14:56:12 +0000 |
| Subject: | Doc #77798 [Ver]: No mention of json_(encode|decode) constant options availability | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-16520@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
User updated by: php at hatlak dot de
Reported by: php at hatlak dot de
Summary: No mention of json_(encode|decode) constant options
availability
Status: Verified
Type: Documentation Problem
Package: JSON related
PHP Version: Irrelevant
Block user comment: N
Private report: N
New Comment:
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...
Previous Comments:
------------------------------------------------------------------------
[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