Re: base_convert() broken

From: Date: Sat, 11 Aug 2001 18:43:46 +0000
Subject: Re: base_convert() broken
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-62953@lists.php.net to get a copy of this message
SB>> Warning: base_to_long: SB>> number 'fffb9064' is too big to fit in long SB>> SB>> with class.id3.php (http://Leknor.com/code/). The call to SB>> base_convert() looks as follows SB>> SB>> $bits = base_convert($bits['bits'],16,2); SB>> SB>> This worked fine until some time ago, maybe 2 weeks. Could this SB>> be related to No, it's related to me. I added this warning, by request of ... hmm, sorry, not remember exactly, I can look up if you want. It's a right thing to do - the number is indeed too long to fit long, so converting it to long will not give you the right results. Actually, the Even More Right Thing To Do (TM) would be for this function to switch to floats once you go over long limit, but I had not time to do it then. -- Stanislav Malyshev, Zend Products Engineer stas@zend.com http://www.zend.com/ +972-3-6139665 ext.115

« previous php.dev (#62953) next »