Hi!
* The current behavior for>,<, etc. is completely useless. It's
unpredictable and it doesn't even establish a total order:
$a = new stdclass;
$a->prop = null;
$b = new stdclass;
$b->prop2 = null;
var_dump($a> $b); //false
var_dump($a == $b); //false
var_dump($b> $a); //false
That's because there's no total ordering of generic objects that can
make sense. Only very specific objects - such as ones representing
numeric qualities or having numeric properties - can be ordered, most of
objects are unordered. And comparing objects with scalars automagically
might bring a lot of surprises as nobody really expects $a == $b and $b
== $a to be different now.
--
Stanislav Malyshev, Software Architect
SugarCRM: http://www.sugarcrm.com/
(408)454-6900 ext. 227
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php