|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #74003 json_encode: Mention serialize_precision setting
Submitted: 2017-01-26 13:27 UTC Modified: 2017-03-28 15:11 UTC
From: mdrolc at gmail dot com Assigned: bukka (profile)
Status: Closed Package: JSON related
PHP Version: Irrelevant OS: Irrelevant
Private report: No CVE-ID: None
 [2017-01-26 13:27 UTC] mdrolc at gmail dot com
Encoding in json_encode is influenced by serialize_precision setting in php.ini. I suggest this is mentioned in documentation of json_encode.
I had a bug related to json_encode producing different outputs on web and through CLI. I was only able to identify influence of php.ini setting by Googling and finding information on stackoverflow.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2017-01-28 17:44 UTC]
-Package: Documentation problem +Package: JSON related
 [2017-03-27 18:23 UTC]
-Status: Open +Status: Assigned -Assigned To: +Assigned To: bukka
 [2017-03-28 15:09 UTC]
Automatic comment from SVN on behalf of bukka
Log: Fix doc bug #74003 (json_encode: Mention serialize_precision setting)
 [2017-03-28 15:11 UTC]
-Status: Assigned +Status: Closed
 [2017-03-28 15:11 UTC]
I have added note about that to the description of json_encode and should be visible once mirrors are synced up.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Jul 25 01:01:30 2024 UTC