Re: Re: Add \Reflection*::getHash()

From: Date: Mon, 11 Dec 2017 08:07:44 +0000
Subject: Re: Re: Add \Reflection*::getHash()
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-101310@lists.php.net to get a copy of this message
On 11 Dec 2017 04:04, "Andreas Hennings" <andreas@dqxtech.net> wrote: So far this proposal only discusses reflections of PHP declarations / symbols. What would we do for e.g. ReflectionObject? Return the spl_object_hash()? Or return the hash of the instantiated class? Or a hash of the serialized object? We need to return something, because ReflectionObject extends ReflectionClass. The reflected object is not GC'd until the ReflectionObject instance is GC'd, so the API would be redundant. Maybe just produce the same hash as ReflectionClass, since those are often used interchangeably?

« previous php.internals (#101310) next »