#32352 [Opn->Bgs]: Bit operator '<<' bug
| From: | pajoye@php.net | Date: | Thu, 17 Mar 2005 12:53:33 +0000 |
| Subject: | #32352 [Opn->Bgs]: Bit operator '<<' bug | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-75431@lists.php.net to get a copy of this message | ||
ID: 32352
Updated by: pajoye@php.net
Reported By: mm at elec dot ru
-Status: Open
+Status: Bogus
Bug Type: *General Issues
Operating System: FreeBSD
PHP Version: 4.3.10
New Comment:
Sorry, but your problem does not imply a bug in PHP itself. For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system
is not the
appropriate forum for asking support questions.
Even if you think it is not a bug, we often know better than you,
please consult the support channels first before even considering
to reopen this report.
Thank you for your interest in PHP.
You are out of the integer range. Check the php manual.
Previous Comments:
------------------------------------------------------------------------
[2005-03-17 13:45:17] mm at elec dot ru
Description:
------------
Operation " 9000 << 18 " return incorrect result => "-1935671296"
Reproduce code:
---------------
$userid - get unsigned value from DB
$userid = 8000;
$base = $userid << 18;
Expected result:
----------------
-1935671296
Actual result:
--------------
2359296000
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=32352&edit=1