Re: Object comparison
| From: | André Luis Ferreira da Silva Bacci | Date: | Sun, 10 Jul 2005 01:06:57 +0000 |
| Subject: | Re: Object comparison | ||
| References: | 1 2 | Groups: | php.doc php.internals |
| Request: | Send a blank email to phpdoc+get-969369019@lists.php.net to get a copy of this message | ||
Andrey Hristov wrote:
André Luis Ferreira da Silva Bacci wrote:Hun... This will make the python guy happy (?)... Anyway, cc'ing to doc list and changing bug to doc problem. The docs state about "same class, compare properties the same way as arrays", witch is plain wrong in PHP 5. I am translator, but my english is horrible ;) []s André AEHi, 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?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)