[prev in list] [next in list] [prev in thread] [next in thread]
List: php-internals
Subject: Re: [PHP-DEV] toString() and Object #ID
From: "David Wang" <planetbeing () gmail ! com>
Date: 2007-07-31 8:17:43
Message-ID: ee59b7580707310117v1f3882b9k72702d3bff3a59ec () mail ! gmail ! com
[Download RAW message or body]
> 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
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic