Andrey Hristov wrote:
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?

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)

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é AE

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

Reply via email to