Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:54276 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 33441 invoked from network); 1 Aug 2011 07:30:41 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 1 Aug 2011 07:30:41 -0000 Authentication-Results: pb1.pair.com header.from=landeholm@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=landeholm@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: landeholm@gmail.com X-Host-Fingerprint: 209.85.210.170 mail-iy0-f170.google.com Received: from [209.85.210.170] ([209.85.210.170:44663] helo=mail-iy0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 57/52-08854-F16563E4 for ; Mon, 01 Aug 2011 03:30:40 -0400 Received: by iym1 with SMTP id 1so7385528iym.29 for ; Mon, 01 Aug 2011 00:30:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=Cz0NNtgNtt0wY+77uuQxDFBpDMYnY2zaiBK0e9djprc=; b=mQi4xdkPXRwL1VpalwSoE+/yolBAgt+QczTbj9IpoPWw+ZeoscZmSsP7caLrMUcKXV 64BQhPEGN8xHWxnCdiT47zqQ7RY3yVFJp+b8WZw7ue9QbC+j37DJXysofmXtO2hdU/Rn ByPAKcFkJJARTze8/3utW6h2LZwNCV3wO3lic= MIME-Version: 1.0 Received: by 10.231.82.144 with SMTP id b16mr90892ibl.71.1312183837358; Mon, 01 Aug 2011 00:30:37 -0700 (PDT) Received: by 10.231.36.133 with HTTP; Mon, 1 Aug 2011 00:30:37 -0700 (PDT) In-Reply-To: <4E360F63.8000006@sugarcrm.com> References: <4E360F63.8000006@sugarcrm.com> Date: Mon, 1 Aug 2011 09:30:37 +0200 Message-ID: To: Stas Malyshev , internals@lists.php.net Content-Type: multipart/alternative; boundary=000e0cd4a5ee817c9c04a96c9bc4 Subject: Re: [PHP-DEV] [RFC] Weak References From: landeholm@gmail.com (Hannes Landeholm) --000e0cd4a5ee817c9c04a96c9bc4 Content-Type: text/plain; charset=ISO-8859-1 Arguably the feature is already "popular". I have pointed this out many times before but many other major OO languages provides weak references natively. Read the introduction in the RFC. Pragmatically speaking (as a framework designer) you are unfortunately not so privileged on what PECL/PHP extensions people should use and have loaded or not. Many hosting providers does not give you the option to load your own extensions and does not change the default configuration. So you are really avoiding non standard features when designing generic applications/frameworks that should be usable by anyone. This means that the PECL extension popularity proves nothing. Implementing it as a PECL extension will most likely prevent people from using it. I wouldn't. Finally to fully support Weak References in the future it has too make some small adjustments to the GC so the collection event can actually be caught (see rfc/additional cleanup and __destruct()). That might also be reason to why it should be implemented directly. Etienne Kneuss should be able to answer this better. ~Hannes On 1 August 2011 04:28, Stas Malyshev wrote: > Hi! > > I think I'm missing some important point here. Why this can't be > implemented as PECL extension? I looked at the patch and saw nothing that > requires engine involvement. So why not just create a PECL extension? If > people start using it and it gets popular, we can merge it to core as we did > with many others. > -- > Stanislav Malyshev, Software Architect > SugarCRM: http://www.sugarcrm.com/ > (408)454-6900 ext. 227 > --000e0cd4a5ee817c9c04a96c9bc4--