Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:54316 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 33807 invoked from network); 3 Aug 2011 14:43:34 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Aug 2011 14:43:34 -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.215.170 as permitted sender) X-PHP-List-Original-Sender: ekneuss@gmail.com X-Host-Fingerprint: 209.85.215.170 mail-ey0-f170.google.com Received: from [209.85.215.170] ([209.85.215.170:42597] helo=mail-ey0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id BB/D9-11280-39E593E4 for ; Wed, 03 Aug 2011 10:43:33 -0400 Received: by eyd10 with SMTP id 10so780569eyd.15 for ; Wed, 03 Aug 2011 07:43:28 -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=GDaAMA4bmDgZX07vddaxnhBoQseRh/4P0+d+BlxLavk=; b=Nh71daqXTMWajr08Ll1h5Gm8udEx3Gey+T1rm+7EiM/bgAUvssw8PCMiC+rqkwXjNF ojLrHx7XUBuAiLf5rKLg4+t9vfwou0hcJCxyL9PuEiMi9ixB0/M00sDBa65wCs/T/bwa FymTjCPSgfNQ6D/++KNt8p8YQoXfx3rvMOEro= MIME-Version: 1.0 Received: by 10.204.136.91 with SMTP id q27mr2277043bkt.222.1312382608431; Wed, 03 Aug 2011 07:43:28 -0700 (PDT) Sender: ekneuss@gmail.com Received: by 10.204.66.20 with HTTP; Wed, 3 Aug 2011 07:43:26 -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:43:26 +0200 X-Google-Sender-Auth: jhdDE7yAgTAhZw4PliZQR52HGGc Message-ID: To: Gustavo Lopes Cc: "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, On Wed, Aug 3, 2011 at 16:35, Gustavo Lopes wrote: > 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? 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