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
 [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 06:01:31 2024 UTC