Doc #74003 [Opn->Asn]: json_encode: Mention serialize_precision setting
Edit report at https://bugs.php.net/bug.php?id=74003&edit=1
ID: 74003
Updated by: bukka@php.net
Reported by: mdrolc at gmail dot com
Summary: json_encode: Mention serialize_precision setting
-Status: Open
+Status: Assigned
Type: Documentation Problem
Package: JSON related
Operating System: Irrelevant
PHP Version: Irrelevant
-Assigned To:
+Assigned To: bukka
Block user comment: N
Private report: N
Previous Comments:
------------------------------------------------------------------------
[2017-01-26 13:27:20] 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.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=74003&edit=1
Thread (3 messages)