Re: NaN still broken on Windows builds?

From: Date: Thu, 18 Jun 2009 14:37:00 +0000
Subject: Re: NaN still broken on Windows builds?
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-44353@lists.php.net to get a copy of this message
On Thu, Jun 18, 2009 at 4:15 PM, Lukas Kahwe Smith<mls@pooteeweet.org> wrote: > > On 24.05.2009, at 11:53, Carsten Wiedmann wrote: > >> Hello, >> >>> var_dump(NAN); // float(0), should be float(NAN) >>> $realNaN = sqrt(-1); >>> var_dump($realNaN); // float(NAN) >>> var_dump($realNaN == $realNaN); // true, should be false, NaN should >>> never match NaN >> >> That's interesting. With my own 5.2.9 build (vc6), I have "false" in the >> last test (comparing the variable): >> | # php -n -r "var_dump(NAN);$n=sqrt(-1);var_dump($n);var_dump($n==$n);" >> | float(0) >> | float(NAN) >> | bool(false) >> >> With the official 5.2.9 or 5.2.10-dev builds it's "true" on the same >> machine >> (xp sp3). >> >> >> BTW: is_nan($realNaN) is working with the official build. > > > is this fixed? and if not .. is there a bug ticket open? It is fixed (there was a bug, do not have it at hand). -- Pierre http://blog.thepimp.net | http://www.libgd.org

« previous php.internals (#44353) next »