[EMAIL PROTECTED] wrote:
> Dear internals,
>
> I stumbled upon the following odd error message from PHP which I was not
> expecting.
>   function test(){
>     echo $this == $this->c1->c2?'equals':'not equals'; // Somehow this

Use === (shallow test - returns true iff the variables refer to the same 
instance) instead of == (deep comparision - member-by-member).

AFAIK this behaviour was introduced in 5.2 or 5.1 - well, just another BC 
break.


-- 
Paweł Stradomski

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to