#38968 [Opn->Bgs]: bitwise operators
| From: | bjori@php.net | Date: | Sun, 03 Dec 2006 09:59:44 +0000 |
| Subject: | #38968 [Opn->Bgs]: bitwise operators | ||
| References: | 1 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969374529@lists.php.net to get a copy of this message | ||
ID: 38968
Updated by: bjori@php.net
Reported By: lamotkin at softhome dot net
-Status: Open
+Status: Bogus
Bug Type: Documentation problem
Operating System: Win98
PHP Version: Irrelevant
New Comment:
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
It is documented that "PHP does not support unsigned
integers."
Previous Comments:
------------------------------------------------------------------------
[2006-09-26 23:28:25] lamotkin at softhome dot net
Description:
------------
I wonder why didn't the documentation maintainers
read user comments for the bitwise operation page,
and CLEARLY specify the '>>' operator performs
SIGNED shift?
Shall this '>>' logic be kept for the future,
and is it for all platforms?
There would be great to add two new core functions:
'shr($value, $bit_count)' and
'sar($value, $bit_count)'.
It's not that hard to implement!
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=38968&edit=1