Re: Missing __toString() part
| From: | Pierre | Date: | Sun, 04 Jun 2006 12:05:52 +0000 |
| Subject: | Re: Missing __toString() part | ||
| References: | 1 2 3 4 5 6 7 8 9 10 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-23921@lists.php.net to get a copy of this message | ||
On 6/4/06, Marcus Boerger <helly@php.net> wrote:
Adding a function hash_from_object() or spl_hash_from object() to ease the generations of hashes is indeed a good idea. There is no impact in the objects managements and people are free to use it or not (no magic default behaviors). Hence i wrote "For PHP 5.2 we **could** think"...Yes, and what's the point of this answer? You should have read my mail as: -1 for any magic changes +1 to keep $a[(string)$o] -1 for __toHash/whatever will be the name of this method +0 for an extra (and extern) function to get an unique hash of an object --Pierre