Test: /ext/json/tests/bug42785.phpt - Version 7.1.31        

Bug #42785 json_encode output numbers formatted according to the locales instead of std
Submitted: 2007-09-28 09:32:08 Modified: 2007-10-01 15:33:36
From: gebura Assigned: iliaa
Status: Closed Package: JSON related
PHP Version: 5.2.4 OS: Linux / Unix

There are 2 different diffs reported by users for this test.

Count Diff
5 (56%)
001+ string(26) "[100.09999999999999,"bar"]"
002+ string(34) "{"a":100.09999999999999,"b":"foo"}"
001- string(13) "[100.1,"bar"]"
002- string(21) "{"a":100.1,"b":"foo"}"
4 (44%)
001+ string(57) "[100.099999999999994315658113919198513031005859375,"bar"]"
002+ string(65) "{"a":100.099999999999994315658113919198513031005859375,"b":"foo"}"
001- string(13) "[100.1,"bar"]"
002- string(21) "{"a":100.1,"b":"foo"}"