You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Comparing the value dict[0 => NAN] to itself is equal in the HipHop debugger hhvm --no-config -a. When running are script from the cli or in a webserver, these values are not equal.
Standalone code, or other way to reproduce the problem
Describe the bug
Comparing the value
dict[0 => NAN]
to itself is equal in the HipHop debuggerhhvm --no-config -a
. When running are script from the cli or in a webserver, these values are not equal.Standalone code, or other way to reproduce the problem
Steps to reproduce the behavior:
hhvm --no-config file.hack
hhvm --no-config -m server -p 8080
and visit localhost:8080/file.hacknot equal
being printed in both cases.hhvm --no-config -a
.echo (dict[0 => NAN] === dict[0 => NAN] ? 'equal' : 'not equal')."\n";
.equal
being printed.Expected behavior
The behavior of this comparison should not differ between debugger and script mode. From my understanding, they should compare equal.
See: https://github.com/facebook/hhvm/blob/master/hphp/test/slow/comparisons/nan_array_id_test.php and https://github.com/facebook/hhvm/blob/master/hphp/test/slow/comparisons/nan_array_id_test.php.expect
My understanding could be wrong here, so please verify what the proper behavior should be with someone in the know first.
Actual behavior
Output differs between the debugger and cli / server mode.
Environment
Additional context
N/A
The text was updated successfully, but these errors were encountered: