Re: Object comparison

From: Date: Sat, 09 Jul 2005 23:53:20 +0000
Subject: Re: Object comparison
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-17211@lists.php.net to get a copy of this message
André Luis Ferreira da Silva Bacci wrote:
Hi, I was in a discuss about PHP's features vs Python's features these days and gat down in this BC: http://bugs.php.net/bug.php?id=33626 Does it ring any bell to anyone? []s André AE
In PHP4 an object was a value type in PHP5 it is a handle and works like in Java - === compares only the handles. However, probably that behaviour needs its presence in the docs (if not already there). == works like a.equals(b) Andrey

« previous php.internals (#17211) next »