NaN still broken on Windows builds?
| From: | Stan Vassilev | Date: | Sun, 24 May 2009 07:02:58 +0000 |
| Subject: | NaN still broken on Windows builds? | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-44041@lists.php.net to get a copy of this message | ||
Hi,
Can someone please point me to a Win32 build which has a working NaN? The last few releases on
php.net all share the same problems, which are leading to real-world bugs in userland code:
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
Regards,
Stan Vassilev