|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2010-12-10 02:21 UTC] felipe@php.net
-Package: Systems problem
+Package: JSON related
[2010-12-11 16:08 UTC] iliaa@php.net
-Status: Open
+Status: Closed
-Assigned To:
+Assigned To: iliaa
[2010-12-11 16:08 UTC] iliaa@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 01 23:00:01 2025 UTC |
Description: ------------ json_encode of float doesn't work when a locale is define which use comma (,) as separator (ex: fr_FR) Test script: --------------- $aReturn=array( 'fAmount' => 12.12 ); setlocale(LC_ALL, 'fr_FR'); print(json_encode($aReturn)); Expected result: ---------------- {"fAmount":12.12} Actual result: -------------- {"fAmount":12,12}