ID: 46868 Updated by: paj...@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