Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:54314 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 28587 invoked from network); 3 Aug 2011 14:29:25 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Aug 2011 14:29:25 -0000 Authentication-Results: pb1.pair.com smtp.mail=ekneuss@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=ekneuss@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.161.42 as permitted sender) X-PHP-List-Original-Sender: ekneuss@gmail.com X-Host-Fingerprint: 209.85.161.42 mail-fx0-f42.google.com Received: from [209.85.161.42] ([209.85.161.42:43227] helo=mail-fx0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 09/D8-11280-44B593E4 for ; Wed, 03 Aug 2011 10:29:25 -0400 Received: by fxe23 with SMTP id 23so1138487fxe.29 for ; Wed, 03 Aug 2011 07:29:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=FlJLaWiLPE4hb03ivQF5OPbklXg9egRCc5YxvV4T/NU=; b=iiEfq/ZZXeDu5t4vQGv2S8A08E9whqIWG5/xNOAxRYlCqNcNvTScJSni35JO0Ogw8N EfW0e/zETAwVV0YJ4K93qHv9jdxamWzawt4Rc5Az7eTZnY82YvWMMF4SmYJUtz+mT3gt pV7FE/HOhfAPrZoGpdrZRFc/cIYLi5jUrY8Bw= MIME-Version: 1.0 Received: by 10.204.23.201 with SMTP id s9mr2270180bkb.326.1312381760319; Wed, 03 Aug 2011 07:29:20 -0700 (PDT) Sender: ekneuss@gmail.com Received: by 10.204.66.20 with HTTP; Wed, 3 Aug 2011 07:29:20 -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 16:29:20 +0200 X-Google-Sender-Auth: pituY2YPxKTpZSsV6RDQoUzCloA Message-ID: To: Hannes Landeholm Cc: Pierre Joye , internals@lists.php.net Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] [VOTE] Weak References From: colder@php.net (Etienne Kneuss) 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