#31036 [Opn->Fbk]: decbin returns wrong value

From: Date: Thu, 09 Dec 2004 09:33:01 +0000
Subject: #31036 [Opn->Fbk]: decbin returns wrong value
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-69966@lists.php.net to get a copy of this message
ID: 31036 Updated by: derick@php.net Reported By: stepanov at transchip dot com -Status: Open +Status: Feedback Bug Type: Math related Operating System: Windows PHP Version: 5.0.2 New Comment: 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 Previous Comments: ------------------------------------------------------------------------ [2004-12-09 10:21:47] stepanov at transchip dot com Description: ------------ for number 2155873860<4294967295 decbin returns 1111111111111111111111111111111 Reproduce code: --------------- print decbin(2155873860); Expected result: ---------------- 10000000100000000000011001000100 Actual result: -------------- 1111111111111111111111111111111 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=31036&edit=1

« previous php.bugs (#69966) next »