From:             [EMAIL PROTECTED]
Operating system: Linux 2.2 - Redhat 6.2
PHP version:      4.0.4
PHP Bug Type:     Math related
Bug description:  base_convert interprets letters w,x,y,z as 0

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: $base10\n";

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 


-- 
Edit Bug report at: http://bugs.php.net/?id=9151&edit=1



-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to