Re: base_convert() broken

From: Date: Sun, 02 Sep 2001 08:44:48 +0000
Subject: Re: base_convert() broken
Groups: php.dev 
Request: Send a blank email to php-dev+get-64893@lists.php.net to get a copy of this message
Stanislav Malyshev wrote: > 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. > SB>> Could this 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. Any update on this? -- Sebastian Bergmann Measure Traffic & Usability http://sebastian-bergmann.de/ http://phpOpenTracker.de/

« previous php.dev (#64893) next »