Object comparison bug?

From: Date: Tue, 31 Aug 2004 12:17:30 +0000
Subject: Object comparison bug?
Groups: php.internals 
Request: Send a blank email to internals+get-12503@lists.php.net to get a copy of this message
Hi The following came up in a bug report (http://bugs.php.net/?id=29911 , but it doesn't matter, as he tried something which doesn't work either way) <?php class foo {}; $foo1 = new foo(); $foo2 = new foo(); var_dump($foo1 == $foo2); ?> prints now true, but according to Derick and http://talks.php.net/show/migrating-ffm/8 it should print false in PHP 5 Bug or expected behaviour? (I don't care much, since I wouldn't compare objects that way in the first place ;) ) chregu -- christian stocker | Bitflux GmbH | schoeneggstrasse 5 | ch-8004 zurich phone +41 1 240 56 70 | mobile +41 76 561 88 60 | fax +41 1 240 56 71 http://www.bitflux.ch | chregu@bitflux.ch | gnupg-keyid 0x5CE1DECB

« previous php.internals (#12503) next »