php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #2556 hexdec doesn't work right
Submitted: 1999-10-18 04:29 UTC Modified: 1999-12-26 11:28 UTC
From: Jay at Westerdal dot com Assigned:
Status: Closed Package: Misbehaving function
PHP Version: 3.0.12 OS: Appache
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: Jay at Westerdal dot com
New email:
PHP Version: OS:

 

 [1999-10-18 04:29 UTC] Jay at Westerdal dot com
hexdec() doesn't work right!

d87a2725 is a HEX number.
Hexdec tells me that the Dec is -663083227.
That is wrong!

d87a2725 should translates to 3631884069

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1999-12-26 11:28 UTC] rasmus at cvs dot php dot net
You are overflowing a 16-bit integer here - hence the negative number
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Sat Oct 10 08:00:02 2026 UTC