#46868 [Opn->Bgs]: NaN == NaN on Windows
| From: | pajoye@php.net | Date: | Mon, 15 Dec 2008 13:52:08 +0000 |
| Subject: | #46868 [Opn->Bgs]: NaN == NaN on Windows | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-131994@lists.php.net to get a copy of this message | ||
ID: 46868
Updated by: pajoye@php.net
Reported By: sv4php at fmethod dot com
-Status: Open
+Status: Bogus
Bug Type: Math related
Operating System: Windows XP
PHP Version: 5.2.8
New Comment:
Please do not submit the same bug more than once. An existing
bug report already describes this very problem. Even if you feel
that your issue is somewhat different, the resolution is likely
to be the same.
Thank you for your interest in PHP.
duplicate of #42143
Previous Comments:
------------------------------------------------------------------------
[2008-12-15 13:47:33] sv4php at fmethod dot com
Description:
------------
NaN should never match NaN by definition, but on the Windows builds of
5.2.5, 5.2.6, and 5.2.8 (5.2.7 not tested) it's true.
Strong emphasis on Windows, as it's a Windows-only issue.
Reproduce code:
---------------
$a = acos(8); // returns NaN
var_dump($a == $a); // false on Linux (proper), true on Windows (wrong)
Expected result:
----------------
bool(false)
Actual result:
--------------
bool(true)
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=46868&edit=1