Bug #13007 Updated: is there such meaning of "unsigned long" in PHP?
| From: | derick@php.net | Date: | Sat, 22 Sep 2001 05:25:04 +0000 |
| Subject: | Bug #13007 Updated: is there such meaning of "unsigned long" in PHP? | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-66298@lists.php.net to get a copy of this message | ||
ID: 13007
Updated by: derick
Reported By: green@la.com
Old Status: Open
Status: Bogus
Bug Type: *General Issues
Operating System: FreeBSD
PHP Version: 4.0.6
New Comment:
PHP does not support unsigned longs, and will not provide them in the near future.
Previous Comments:
------------------------------------------------------------------------
[2001-08-28 15:43:21] green@la.com
65536 & 4096 = 0 (right)
65536 & 65536 = 65536 (right)
but
3221225472 & 1073741824 = 0 (this is wrong, right answer isn't 0 but 2147483648)
what I need to do to make above mentioned operations works correctly with unsigned long variables in
PHP?
thanks.
------------------------------------------------------------------------
Edit this bug report at http://bugs.php.net/?id=13007&edit=1