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
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: green at la dot com
New email:
PHP Version: OS:

 

 [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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Tue Jul 01 00:01:36 2025 UTC