Bug #13150 Updated: sprintf("%08x",1<<31) generates -80000000
ID: 13150
Updated by: stas
Reported By: adler@bnl.gov
Status: Open
Old Bug Type: Output Control
Bug Type: Scripting Engine problem
Operating System: linux
PHP Version: 4.0.6
New Comment:
BTW: there's no such interer as 0x80000000 in PHP. PHP is limited by signed long.
Previous Comments:
------------------------------------------------------------------------
[2001-09-05 10:09:41] adler@bnl.gov
sprintf("%08x",1<<31) generates -80000000, should generate 80000000.
That's it!
------------------------------------------------------------------------
Edit this bug report at http://bugs.php.net/?id=13150&edit=1
Thread (4 messages)