note 84889 deleted from language.types.integer by googleguy

From: Date: Sat, 19 Jan 2013 03:40:00 +0000
Subject: note 84889 deleted from language.types.integer by googleguy
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-193215@lists.php.net to get a copy of this message
Note Submitter: rustamabd at gmail dot com ---- Be very careful with code that relies on integer overflow. Negative overflow is handled differently on different platforms. For example, this code: <?php echo (int)-3000000000; // a 32bit negative overflow ?> ... outputs 1294967296 on Windows, and -2147483648 on FreeBSD. (Tested with php 5.2.6, freebsd 7.0)

« previous php.notes (#193215) next »