ID: 41673 Updated by: [EMAIL PROTECTED] Reported By: stas at zend dot com -Status: Open +Status: Assigned Bug Type: JSON related Operating System: Unix PHP Version: 5CVS-2007-06-12 (CVS) -Assigned To: +Assigned To: iliaa
Previous Comments: ------------------------------------------------------------------------ [2007-06-12 20:12:54] stas at zend dot com Description: ------------ When array with big numbers is encoded with json_encode, the result contains entirely different number. Reproduce code: --------------- <?php $b = array(40000000000000); var_dump(json_encode($b)); Expected result: ---------------- string "[40000000000000]" or string "[4.0e13]" Actual result: -------------- string(11) "[969572352]" ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=41673&edit=1
