]> granicus.if.org Git - php/commit
Fix a bug where two doubles are equal but the maths operation makes it appear false.
authorScott MacVicar <scottmac@php.net>
Sun, 22 Aug 2010 08:01:34 +0000 (08:01 +0000)
committerScott MacVicar <scottmac@php.net>
Sun, 22 Aug 2010 08:01:34 +0000 (08:01 +0000)
commit1e48c71b96282adf4c4a549077261c6c2ccbd715
treef2adb6ba11e0d952c1b22381a344a6cb72f4d5dc
parent77755af9b65ca89442946be80b545ec9574f1728
Fix a bug where two doubles are equal but the maths operation makes it appear false.

Best example with INF where equals and identical produce different results.

<?php
var_dump(INF==INF);
var_dump(INF===INF);
Zend/zend_operators.c