Re: weak references
| From: | Hannes Landeholm | Date: | Sat, 16 Jul 2011 12:14:26 +0000 |
| Subject: | Re: weak references | ||
| References: | 1 2 3 4 5 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-53984@lists.php.net to get a copy of this message | ||
I'm not familiar with the internal implementation of GC in PHP but if
the current garbage collection implementation makes catching the gc
event non-trivial I'd agree and vote for postponing my "SplQueue
ref_queue" suggestion until the future. It could always be added later
and there is the temporary __destruct workaround for the meantime.
~Hannes
On 16 July 2011 13:23, Ferenc Kovacs <tyra3l@gmail.com> wrote:
>
> Etienne Kneuss has more knowledge about the implementation, but AFAIK
> as we didn't modified the garbage collector we didn't get notified if
> a weakreferenced object gets gced, so we can't notify the SplQueue
> either.
> please be aware that the bigger the change that we introduce it is
> less likely that we can make this happen in 5.4, or at all.
>
> --
> Ferenc Kovács
> @Tyr43l - http://tyrael.hu
>