Interesting stuff! Exactly the kind of stuff that's worrying me.
I think you found a conceptual bug in zend_hash_compare(), I think
it's worth fixing.
Zeev
At 14:59 17/02/2006, Jakub Vrana wrote:
Sara Golemon wrote:
> Yes, and that's the problem. $a > $b *isn't* read by the
current parser as
> $a > $b, it's read as $b < $a.
> For all normal PHP comparisons, the distinction is unimportant... 4 < 2
> and 2 > 4 will both evaluate to false after all.
Array comparison is due this logic also strange:
$a = array(0, 1);
$b = array(1 => 0, 0 => 1);
var_dump($a < $b); // true
var_dump($a > $b); // true
$a is both less than and greater than $b.
Jakub Vrana
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php