ID: 40439 User updated by: xris01 at free dot fr Reported By: xris01 at free dot fr Status: Bogus Bug Type: Unknown/Other Function Operating System: Debian 3.1 PHP Version: 5.2.1 New Comment:
I see, but even though type is double, why are the result different ? Previous Comments: ------------------------------------------------------------------------ [2007-02-12 09:23:35] [EMAIL PROTECTED] On 32bit systems -2302452860 is a float, not integer. ------------------------------------------------------------------------ [2007-02-12 06:29:04] judas dot iscariote at gmail dot com /sapi/cli/php foo.php -36839245760 64 bit system and 0 in 32 bit system here. ------------------------------------------------------------------------ [2007-02-12 00:36:54] xris01 at free dot fr Description: ------------ When using bit shifting (shift left) operation in 5.2.1, result is different (and false) compared to 5.1.6 Reproduce code: --------------- $z = -2302452860; $lr_z = (($z) << 4); echo $lr_z; Expected result: ---------------- 1815459904 Actual result: -------------- 0 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=40439&edit=1