Doc #74003 [Opn->Asn]: json_encode: Mention serialize_precision setting

From: Date: Mon, 27 Mar 2017 18:23:49 +0000
Subject: Doc #74003 [Opn->Asn]: json_encode: Mention serialize_precision setting
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-14546@lists.php.net to get a copy of this message
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)

« previous php.doc.bugs (#14546) next »