Hi, On Wed, Aug 3, 2011 at 16:35, Gustavo Lopes <glo...@nebm.ist.utl.pt> wrote: > Em Wed, 03 Aug 2011 15:29:20 +0100, Etienne Kneuss <col...@php.net> > escreveu: > >> Hi, >> >> http://pecl.php.net/package/Weakref has been created, and the >> standalone code should compile fine (I checked for 5_3 only but >> everything should be smooth for 5_4/trunk) >> >> The next planned addition is a StrongRef class, following the exact >> same interface as WeakRef only that it is always valid and get() >> always return the ref. The reason for it is that code can switch >> between the two transparently. >> > > Wouldn't it be better to have both classes implement a common interface > then?
Sure > > -- > Gustavo Lopes > > -- > 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