php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #38968 bitwise operators
Submitted: 2006-09-26 23:28 UTC Modified: 2006-12-03 09:59 UTC
From: lamotkin at softhome dot net Assigned:
Status: Not a bug Package: Documentation problem
PHP Version: Irrelevant OS: Win98
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: lamotkin at softhome dot net
New email:
PHP Version: OS:

 

 [2006-09-26 23:28 UTC] 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!



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-12-03 09:59 UTC] bjori@php.net
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."
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Nov 20 09:00:02 2025 UTC