Edit report at https://bugs.php.net/bug.php?id=60346&edit=1

 ID:                 60346
 Updated by:         larue...@php.net
 Reported by:        yun...@php.net
 Summary:            NAN != NAN
-Status:             Open
+Status:             Bogus
 Type:               Bug
 Package:            Scripting Engine problem
 Operating System:   Linux
 PHP Version:        5.4.0RC1
 Block user comment: N
 Private report:     N

 New Comment:

Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

"x = x returning false can be used to test if x is a quiet NaN"
see: http://en.wikipedia.org/wiki/NaN


Previous Comments:
------------------------------------------------------------------------
[2011-11-21 10:15:11] yun...@php.net

Description:
------------
This is a regression from PHP 5.3.

Test script:
---------------
var_dump(NAN == NAN);

Expected result:
----------------
bool(true)

Actual result:
--------------
bool(false)


------------------------------------------------------------------------



-- 
Edit this bug report at https://bugs.php.net/bug.php?id=60346&edit=1

Reply via email to