#23563 [NEW]: base_convert is broken

From: Date: Fri, 09 May 2003 13:37:03 +0000
Subject: #23563 [NEW]: base_convert is broken
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-39391@lists.php.net to get a copy of this message
From: jaakkoho at paju dot oulu dot fi Operating system: Linux 2.4 (Debian) PHP version: 4.3.1 PHP Bug Type: Math related Bug description: base_convert is broken Converting a decimal to n-base and then back to decimal failed: print base_convert(base_convert("10000000000000001", 10, 36), 36, 10); output: 10000000000000000 (the last '0' should be '1') Bug appears only if strlen($value_to_convert) > 16. -- Edit bug report at http://bugs.php.net/?id=23563&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=23563&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=23563&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=23563&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=23563&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=23563&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=23563&r=support Expected behavior: http://bugs.php.net/fix.php?id=23563&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=23563&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=23563&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=23563&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=23563&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=23563&r=dst IIS Stability: http://bugs.php.net/fix.php?id=23563&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=23563&r=gnused

« previous php.bugs (#39391) next »