Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:54321 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 6676 invoked from network); 3 Aug 2011 19:23:20 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Aug 2011 19:23:20 -0000 Authentication-Results: pb1.pair.com header.from=juzna.cz@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=juzna.cz@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.210.170 as permitted sender) X-PHP-List-Original-Sender: juzna.cz@gmail.com X-Host-Fingerprint: 209.85.210.170 mail-iy0-f170.google.com Received: from [209.85.210.170] ([209.85.210.170:50103] helo=mail-iy0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A3/83-23811-520A93E4 for ; Wed, 03 Aug 2011 15:23:18 -0400 Received: by iye16 with SMTP id 16so123142iye.29 for ; Wed, 03 Aug 2011 12:23:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=9WA7kuY8a7oSQgCR3SYF8KvEx54lKGZJZGrITaa4tpE=; b=oyziZnGMyexYa4gPBqdpd2INV2hWNwwj1yWaoYXsaBDs6PkqQU9zLo4BfDtSnmP7TH AEvZPt4vXi6HI5wX3HII8CLrty+q8RECwas4k1fsFjH5QXQbxsNv75zTT8ujTLV/Sz2Z bVYYhykXBnN7QR3S6H1TxO/xq5noMVaGEAsIs= Received: by 10.231.113.98 with SMTP id z34mr5229962ibp.28.1312399394460; Wed, 03 Aug 2011 12:23:14 -0700 (PDT) MIME-Version: 1.0 Received: by 10.231.30.132 with HTTP; Wed, 3 Aug 2011 12:22:54 -0700 (PDT) In-Reply-To: References: <4E3898B0.40809@sugarcrm.com> <4E38EC0C.9080304@lerdorf.com> <4E38FA2E.4030605@lsces.co.uk> <4E38FC67.9090200@toolpark.com> Date: Wed, 3 Aug 2011 20:22:54 +0100 Message-ID: To: Etienne Kneuss Cc: internals@lists.php.net Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] [VOTE] Weak References From: juzna.cz@gmail.com (Jan Dolecek) Thanks Etienne, I was waiting for this for a while! I wrote a blog post how to get best benefits from weak references: http://blog.juzna.cz/2011/08/weak-references-in-php/ Perhaps this will help showing people what are they good for. And thanks to PECL extension I hope we can start using them in my company very soon in our extension of Zend_Db. Jan Dolecek juzna.cz@gmail.com On Wed, Aug 3, 2011 at 3:29 PM, Etienne Kneuss wrote: > 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. > > Best, > > On Wed, Aug 3, 2011 at 14:49, Hannes Landeholm wrote: >> Good idea. I will see what I can do when I get time. >> >> ~Hannes >> >> On 3 August 2011 12:32, Pierre Joye wrote: >>> hi Hannes, >>> >>> I would suggest to still update the RFC with the various very >>> instructive comments and example use cases you use in this thread. >>> Doing the same in the long run should help as well to understand the >>> goals, implementations, etc., for the pecl users or for the 2nd >>> attempt to get it in the core, if still desired. >>> >>> Cheers, >>> >>> On Wed, Aug 3, 2011 at 12:25 PM, Hannes Landeholm wrote: >>>> Hello, >>>> >>>> We had a healthy discussion around WR and I have been able to express >>>> my concerns. The consensus is clearly to put it in a PECL extension so >>>> I think this discussion should move on to the practical matters of >>>> doing this. I suggest aborting the vote and changing the RFC state to >>>> something like "Transfered to PECL". >>>> >>>> ~Hannes >>>> >>>> -- >>>> PHP Internals - PHP Runtime Development Mailing List >>>> To unsubscribe, visit: http://www.php.net/unsub.php >>>> >>>> >>> >>> >>> >>> -- >>> Pierre >>> >>> @pierrejoye | http://blog.thepimp.net | http://www.libgd.org >>> >> >> -- >> 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 > >