php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #55357 Changelog inaccurate
Submitted: 2011-08-03 18:36 UTC Modified: 2011-08-04 01:17 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: adam at acdinternet dot com Assigned: frozenfire (profile)
Status: Closed Package: Documentation problem
PHP Version: 5.3.6 OS: Any
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: adam at acdinternet dot com
New email:
PHP Version: OS:

 

 [2011-08-03 18:36 UTC] adam at acdinternet dot com
Description:
------------
---
From manual page: http://www.php.net/function.json-encode%23Changelog
---

This page
http://www.php.net/manual/en/function.json-encode.php

on the changelog says that for PHP 5.4.0 only 'JSON_PRETTY_PRINT option was added'.

But this page

http://php.net/manual/en/json.constants.php

says JSON_BIGINT_AS_STRING and JSON_UNESCAPED_SLASHES were also added only in 5.4.0

The latter is correct since my 5.3.6 installation (MAMP) doesn't understand JSON_UNESCAPED_SLASHES and this inconsistency in the manual preventing me understanding that constant is not available in my version.

The two additional constants should be added to the changelog on the page for the JSON-ENCODE function.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-08-04 01:08 UTC] frozenfire@php.net
-Status: Open +Status: Assigned -Assigned To: +Assigned To: frozenfire
 [2011-08-04 01:08 UTC] frozenfire@php.net
My bad. I had added that changelog entry in response to an earlier bug, but 
hadn't thought to check for other additions in that version.

I'll note these in the docs.
 [2011-08-04 01:17 UTC] frozenfire@php.net
-Status: Assigned +Status: Closed
 [2011-08-04 01:17 UTC] frozenfire@php.net
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.

Forgot to include bug id in the commit. The revision is 314219.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Thu Oct 08 09:00:02 2026 UTC