PHP 4.0 Bug #9151 Updated: base_convert interprets letters w,x,y,z as 0

From: Date: Wed, 07 Feb 2001 16:12:37 +0000
Subject: PHP 4.0 Bug #9151 Updated: base_convert interprets letters w,x,y,z as 0
Groups: php.dev 
Request: Send a blank email to php-dev+get-45956@lists.php.net to get a copy of this message
ID: 9151 User Update by: gherson@snet.net Old-Status: Open Status: Closed Bug Type: Math related Description: base_convert interprets letters w,x,y,z as 0 Sorry, stupid mistake on my part. Pls ignore Previous Comments: --------------------------------------------------------------------------- [2001-02-07 11:02:09] gherson@snet.net Hi. Base_convert interprets letters w,x,y, and z to be zero but should handle letters up to z: "Digits in numbers with a base higher than 10 will be represented with the letters a-z, with a meaning 10, b meaning 11 and z meaning 35." -- http://www.php.net/manual/en/function.base-convert.php Shows problem: $base32 = 'x'; // a-v ok, w-z=0 $base10 = base_convert($base32, 32, 10); echo "base10: $base10n"; My configure line: ./configure --with-cybercash=/usr/local/bin/mck-3.3.0-i586-pc-linux-gnulibc2.1 --with-pgsql=/var/lib/pgsql --with-apxs thanks, George --------------------------------------------------------------------------- Full Bug description available at: http://bugs.php.net/?id=9151

« previous php.dev (#45956) next »