php.net |  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
Description:
------------
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.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2017-01-28 17:44 UTC] cmb@php.net
-Package: Documentation problem +Package: JSON related
 [2017-03-27 18:23 UTC] bukka@php.net
-Status: Open +Status: Assigned -Assigned To: +Assigned To: bukka
 [2017-03-28 15:09 UTC] bukka@php.net
Automatic comment from SVN on behalf of bukka
Revision: http://svn.php.net/viewvc/?view=revision&revision=342203
Log: Fix doc bug #74003 (json_encode: Mention serialize_precision setting)
 [2017-03-28 15:11 UTC] bukka@php.net
-Status: Assigned +Status: Closed
 [2017-03-28 15:11 UTC] bukka@php.net
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: Fri Apr 19 05:01:29 2024 UTC