Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:54315 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 30856 invoked from network); 3 Aug 2011 14:35:35 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Aug 2011 14:35:35 -0000 Authentication-Results: pb1.pair.com smtp.mail=glopes@nebm.ist.utl.pt; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=glopes@nebm.ist.utl.pt; sender-id=unknown Received-SPF: error (pb1.pair.com: domain nebm.ist.utl.pt from 193.136.128.21 cause and error) X-PHP-List-Original-Sender: glopes@nebm.ist.utl.pt X-Host-Fingerprint: 193.136.128.21 smtp1.ist.utl.pt Linux 2.6 Received: from [193.136.128.21] ([193.136.128.21:60022] helo=smtp1.ist.utl.pt) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 06/49-11280-4BC593E4 for ; Wed, 03 Aug 2011 10:35:32 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp1.ist.utl.pt (Postfix) with ESMTP id 1E7A2700045A for ; Wed, 3 Aug 2011 15:35:29 +0100 (WEST) X-Virus-Scanned: by amavisd-new-2.6.4 (20090625) (Debian) at ist.utl.pt Received: from smtp1.ist.utl.pt ([127.0.0.1]) by localhost (smtp1.ist.utl.pt [127.0.0.1]) (amavisd-new, port 10025) with LMTP id WH0iCoU7oh93 for ; Wed, 3 Aug 2011 15:35:28 +0100 (WEST) Received: from mail2.ist.utl.pt (mail.ist.utl.pt [IPv6:2001:690:2100:1::8]) by smtp1.ist.utl.pt (Postfix) with ESMTP id D65397000436 for ; Wed, 3 Aug 2011 15:35:28 +0100 (WEST) Received: from glopes.construlink.local (unknown [85.139.253.17]) (Authenticated sender: ist155741) by mail2.ist.utl.pt (Postfix) with ESMTPSA id C735F20071A5 for ; Wed, 3 Aug 2011 15:35:28 +0100 (WEST) Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes To: "internals@lists.php.net" References: <4E3898B0.40809@sugarcrm.com> <4E38EC0C.9080304@lerdorf.com> <4E38FA2E.4030605@lsces.co.uk> <4E38FC67.9090200@toolpark.com> Date: Wed, 03 Aug 2011 15:35:28 +0100 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Organization: =?utf-8?Q?N=C3=BAcleo_de_Eng=2E_Biom=C3=A9di?= =?utf-8?Q?ca_do_I=2ES=2ET=2E?= Message-ID: In-Reply-To: User-Agent: Opera Mail/11.50 (Win32) Subject: Re: [PHP-DEV] [VOTE] Weak References From: glopes@nebm.ist.utl.pt ("Gustavo Lopes") Em Wed, 03 Aug 2011 15:29:20 +0100, Etienne Kneuss 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? -- Gustavo Lopes