|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-03-29 01:06 UTC] aec2105 at columbia dot edu
[2008-12-18 21:19 UTC] scottmac@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Dec 07 15:00:01 2025 UTC |
Description: ------------ json_decode on a large int causes incorrect parse. In the instance below, json_decode produces a negative int. *Note putting quotation marks around the int resolves the issue... although this should not be necessary. Reproduce code: --------------- <? $string='{"test_int": 102000000000008277}'; $data = json_decode($string,true); print_r($data); ?> Expected result: ---------------- Array ( [test_int] => 102000000000008277 ) Actual result: -------------- Array ( [test_int] => -1491656619 )