php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #13007 is there such meaning of "unsigned long" in PHP?
Submitted: 2001-08-28 15:43 UTC Modified: 2001-09-22 07:25 UTC
From: green at la dot com Assigned:
Status: Not a bug Package: *General Issues
PHP Version: 4.0.6 OS: FreeBSD
Private report: No CVE-ID: None
 [2001-08-28 15:43 UTC] green at la dot 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.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-09-22 07:25 UTC] derick@php.net
PHP does not support unsigned longs, and will not provide them in the near future.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 26 14:01:29 2024 UTC