Re: Re: Minor engine patch to facilitate PECL/operator

From: Date: Fri, 17 Feb 2006 19:28:56 +0000
Subject: Re: Re: Minor engine patch to facilitate PECL/operator
References: 1 2  Groups: php.internals 
Request: Send a blank email to [email protected] to get a copy of this message
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


Thread (19 messages)

« previous php.internals (#21903) next »