Hi, On Thu, Jul 14, 2011 at 21:42, Ferenc Kovacs <tyr...@gmail.com> wrote: > To spare the "5.4 features vote" thread from the off-topic discussion, > we can continue here. > Hannes Landeholm brought this idea up, see > http://news.php.net/php.internals/53956 and > http://news.php.net/php.internals/53959 > I would suggest that Hannes create an rfc, and add some examples and > introduce the weak references in general and how this can be useful, > what problems do they solve (it was discussed in the bugreport, but it > wasn't clear as far as I can tell from the comments). > if I understand this right, Hannes proposed adding a new Spl > class(interface?), which can store and retrive a collection of > variables without incrementing the refcounts, so they can be freed if > they aren't used other than in this collection. > > Hannes please correct me if I'm wrong somewhere. >
Some draft here: https://wiki.php.net/rfc/weakreferences With a patch implementing some magic for a POC here http://patches.colder.ch/php-src/weakref-trunk.patch?markup. It still requires some work though. > -- > Ferenc Kovács > @Tyr43l - http://tyrael.hu > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > -- Etienne Kneuss http://www.colder.ch -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php