Re: weak references
| From: | Hannes Landeholm | Date: | Sat, 16 Jul 2011 08:48:31 +0000 |
| Subject: | Re: weak references | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-53977@lists.php.net to get a copy of this message | ||
Hello,
I just realized you could actually utilize the __destruct method to catch
the event I described in my last post. The SplWeakRef class as currently
defined in the RFC would therefore suffice to build a userland class that
automatically garbage collects indexes.
~Hannes