ID:               40439
 Updated by:       [EMAIL PROTECTED]
 Reported By:      xris01 at free dot fr
-Status:           Open
+Status:           Bogus
 Bug Type:         Unknown/Other Function
 Operating System: Debian 3.1
 PHP Version:      5.2.1
 New Comment:

On 32bit systems -2302452860 is a float, not integer.



Previous Comments:
------------------------------------------------------------------------

[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

Reply via email to