note 91785 deleted from function.json-decode by googleguy

From: Date: Fri, 14 Jun 2013 10:04:53 +0000
Subject: note 91785 deleted from function.json-decode by googleguy
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-195218@lists.php.net to get a copy of this message
Note Submitter: Nick Telford ---- In PHP <= 5.1.6 trying to decode an integer value that's > PHP_INT_MAX will result in an intger of PHP_INT_MAX. In PHP 5.2+ decoding an integer > PHP_INT_MAX will cause a conversion to a float. Neither behaviour is perfect, capping at PHP_INT_MAX is marginally worse, but the float conversion loses precision. If you expect to deal with large numbers at all, let alone in JSON, ensure you're using a 64-bit system.

« previous php.notes (#195218) next »