php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #31036 decbin returns wrong value
Submitted: 2004-12-09 10:21 UTC Modified: 2004-12-17 01:00 UTC
From: stepanov at transchip dot com Assigned:
Status: No Feedback Package: Math related
PHP Version: 5.0.2 OS: Windows
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: stepanov at transchip dot com
New email:
PHP Version: OS:

 

 [2004-12-09 10:21 UTC] stepanov at transchip dot com
Description:
------------
for number 2155873860<4294967295 decbin returns 1111111111111111111111111111111

Reproduce code:
---------------
print decbin(2155873860);

Expected result:
----------------
10000000100000000000011001000100

Actual result:
--------------
1111111111111111111111111111111

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-12-09 10:32 UTC] derick@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php5-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5.0-win32-latest.zip
 [2004-12-17 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 22 01:01:30 2024 UTC