Re: toString() and Object #ID
| From: | David Wang | Date: | Tue, 31 Jul 2007 08:17:43 +0000 |
| Subject: | Re: toString() and Object #ID | ||
| References: | 1 2 3 4 5 6 7 8 9 10 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-31334@lists.php.net to get a copy of this message | ||
> Do you think there's an easy and clean approaching to solve this kind
> of problem? Or maybe the problem should be solved on array_diff() and
> other functions to make them not try to cast the object as a string to
> compare?
If use array_udiff with a comparison function that compares the
spl_object_hash of the two operands, you should have your old behavior
back.
David