From: [EMAIL PROTECTED] Operating system: 2.4.19-16mdk PHP version: 4.2.3 PHP Bug Type: Math related Bug description: base_convert does not convert a number back to itself
I am expecting that a number with a base X is converted to itself if the base is unchanged. <?php $number = "987654321"; $after = base_convert($number, 10, 10); echo "\nBefore: $number"; echo "\nAfter : $after\n\n"; ?> 987654321 gives back, in fact, 987654321. Unfortunately, this is not always true: <?php $number = "9876543210"; $after = base_convert($number, 10, 10); echo "\nBefore: $number"; echo "\nAfter : $after\n\n"; ?> 9876543210 gives back 1286608618 The 4.2.3 version I have been using is the one that comes with the Mandrake 9.0 distribution. I have been keeping it regularly updated on the web (now is Dec 12th, 2002). -- Edit bug report at http://bugs.php.net/?id=20925&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=20925&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=20925&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=20925&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=20925&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=20925&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=20925&r=support Expected behavior: http://bugs.php.net/fix.php?id=20925&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=20925&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=20925&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=20925&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=20925&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=20925&r=dst IIS Stability: http://bugs.php.net/fix.php?id=20925&r=isapi