ID:               37033
 Updated by:       [EMAIL PROTECTED]
 Reported By:      mr dot wiseman at gmail dot com
-Status:           Open
+Status:           Bogus
 Bug Type:         Math related
 Operating System: Ubuntu Breezy on AMD64
 PHP Version:      5.1.2
 New Comment:

You understand wrongly... php's integer size follows the systems
integer size.


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

[2006-04-10 19:36:53] mr dot wiseman at gmail dot com

Description:
------------
The following code will print a 64-bit value on my 64-bit system. As
far as I understand all variables are guaranteed to be 32-bit in PHP?

Reproduce code:
---------------
<?php

$a = 0;
echo dechex(~$a);

?>

Expected result:
----------------
ffffffff

Actual result:
--------------
ffffffffffffffff


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=37033&edit=1

Reply via email to