|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2012-10-01 15:26 UTC] laruence@php.net
[2012-10-01 15:31 UTC] laruence@php.net
-Status: Open
+Status: Feedback
[2012-10-01 15:49 UTC] rasmus@php.net
[2012-10-01 15:49 UTC] rasmus@php.net
-Status: Feedback
+Status: Not a bug
[2012-10-02 09:38 UTC] jan dot winkler at adspirit dot de
[2012-10-02 09:38 UTC] jan dot winkler at adspirit dot de
-PHP Version: 5.3.17
+PHP Version: 5.2.6
[2012-10-02 09:43 UTC] jan dot winkler at adspirit dot de
[2012-10-02 15:26 UTC] rasmus@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 23:00:01 2025 UTC |
Description: ------------ the following code produces a wrong number when decoded: $a = array('a'=>5584842151736052644); $x = json_encode($a); print_r(json_decode($x)); ... will output stdClass Object ( [a] => 5584842151736052736 ) instead of 5584842151736052644 Test script: --------------- $a = array('a'=>5584842151736052644); $x = json_encode($a); print_r(json_decode($x)); Expected result: ---------------- json_decode should output stdClass Object ( [a] => 5584842151736052644 ) Actual result: -------------- stdClass Object ( [a] => 5584842151736052736 )