Re: New function: spl_object_id() or spl_object_handle()
| From: | Levi Morrison | Date: | Fri, 28 Nov 2014 20:21:03 +0000 |
| Subject: | Re: New function: spl_object_id() or spl_object_handle() | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-79292@lists.php.net to get a copy of this message | ||
>> Won't
$obj1 === $obj2 work for you ?
>>
>
> This works if you have two objects which are easily accessible in the same
> scope.
>
> Not that it can not be done this way, but it may require jumping through
> hoops to get two object references into the common scope where you can
> compare them.
If you can get their hashes to the same place, you can get the object
to the same place.
Big -1 from me.