|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #77798 No mention of json_(encode|decode) constant options availability
Submitted: 2019-03-26 14:05 UTC Modified: 2019-04-16 18:37 UTC
Avg. Score:1.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: php at hatlak dot de Assigned: girgias (profile)
Status: Closed Package: JSON related
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: php at hatlak dot de
New email:
PHP Version: OS:


 [2019-03-26 14:05 UTC] php at hatlak dot de
From manual page:

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.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2019-03-26 14:23 UTC]
-Summary: No mention of json_decode options availability +Summary: No mention of json_(encode|decode) constant options availability -Status: Open +Status: Verified -Package: Documentation problem +Package: JSON related -PHP Version: 7.1.27 +PHP Version: Irrelevant
 [2019-03-26 14:23 UTC]
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:56 UTC] 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-04-16 18:31 UTC]
Automatic comment from SVN on behalf of girgias
Log: Add JSON constants to changelog.
Doc Bug #77798
Doc Bug #77811
Doc Bug #77881
 [2019-04-16 18:37 UTC]
-Status: Verified +Status: Closed -Assigned To: +Assigned To: girgias
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Jul 20 01:01:29 2024 UTC