Re: Object comparison bug?
| From: | Derick Rethans | Date: | Wed, 01 Sep 2004 06:53:03 +0000 |
| Subject: | Re: Object comparison bug? | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-12519@lists.php.net to get a copy of this message | ||
On Tue, 31 Aug 2004, Andi Gutmans wrote:
> Hi Christian,
>
> This was a backwards compatibility issue and therefore, we made sure that
> PHP 5 behaves the same way as PHP 4. So if both objects are PHP objects it
> will do a PHP 4 object comparison.
> If you use === (is identical) then we will only compare handles unless in
> zend1.compatibility_mode.
> This should give people the best of both worlds being able to choose
> comparison (==) or strict identical (===).
Yup, and making this backward compatible was done after I wrote those
slides ;-)
Derick