#46236 [Opn->Asn]: Negative integer overflow handled incorrectly
| From: | jani@php.net | Date: | Mon, 10 Nov 2008 20:24:07 +0000 |
| Subject: | #46236 [Opn->Asn]: Negative integer overflow handled incorrectly | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-130850@lists.php.net to get a copy of this message | ||
ID: 46236
Updated by: jani@php.net
Reported By: wlalk at wtfs dot za dot net
-Status: Open
+Status: Assigned
Bug Type: Scripting Engine problem
Operating System: Linux (2.6.18)
PHP Version: 5.2.6
-Assigned To:
+Assigned To: tony2001
New Comment:
Antony, your fix was not enough?
Previous Comments:
------------------------------------------------------------------------
[2008-10-05 11:22:50] wlalk at wtfs dot za dot net
Description:
------------
Large negative integer not overflowing correctly.
Same problem as Bug #38908 but with version 5.2.6.
Bug #38908 claims to have been fixed as of 26 September 2006.
Reproduce code:
---------------
echo (int)(-2432869008);
echo (int)(2432869008);
Expected result:
----------------
1862098288
-1862098288
Output as generated by a windows based server.
Actual result:
--------------
-2147483648
-1862098288
Output as generated by a linux based server.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=46236&edit=1