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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Mon Jun 03 08:01:30 2024 UTC