Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:54045 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 5975 invoked from network); 18 Jul 2011 16:19:28 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 Jul 2011 16:19:28 -0000 Authentication-Results: pb1.pair.com smtp.mail=landeholm@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=landeholm@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.214.170 as permitted sender) X-PHP-List-Original-Sender: landeholm@gmail.com X-Host-Fingerprint: 209.85.214.170 mail-iw0-f170.google.com Received: from [209.85.214.170] ([209.85.214.170:40968] helo=mail-iw0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 0C/DD-08769-F0D542E4 for ; Mon, 18 Jul 2011 12:19:28 -0400 Received: by iwn36 with SMTP id 36so3469586iwn.29 for ; Mon, 18 Jul 2011 09:19:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=sEN70AbECLBkjvX8h7TaKr3P8RZqDp4mDUaL18OQCZo=; b=cRPDPogT6yXSRebenLRCWXfeTtXBNEUBVZebU+PNeiFU4oxeRAV21hmgnzCOJjv2B0 k2rHRKq6KjM0bMhgHGJpzs/ttLTcVLyL3MP5W+jk08G7c1YHwRsf5JGhE+Eepsj8qmaz Z2texHj0hl65mzFithIWhnxmV/R8q0QI65tQ0= MIME-Version: 1.0 Received: by 10.42.175.68 with SMTP id az4mr7592178icb.147.1311005965081; Mon, 18 Jul 2011 09:19:25 -0700 (PDT) Received: by 10.231.37.11 with HTTP; Mon, 18 Jul 2011 09:19:24 -0700 (PDT) Date: Mon, 18 Jul 2011 18:19:24 +0200 Message-ID: To: internals@lists.php.net, Etienne Kneuss Content-Type: multipart/alternative; boundary=90e6ba6e8f9ad8dd6104a85a5c9a Subject: [RFC] Weak References From: landeholm@gmail.com (Hannes Landeholm) --90e6ba6e8f9ad8dd6104a85a5c9a Content-Type: text/plain; charset=ISO-8859-1 Hello, This is the official RFC discussion thread for Weak References and an announcement of the RFC. Please read the RFC before replying: https://wiki.php.net/rfc/weakreferences In a nutshell: The RFC proposes adding a single class called "SplWeakRef" which provides the "Weak Reference" feature. This is the only change. Previous thread was here: http://news.php.net/php.internals/53963 I'm creating this new thread for several reasons. First of all I feel that the RFC is now somewhat complete and an announcement should be formally made with the [RFC] subject in accordance to the voting procedure. Also the other thread has more general discussion on internal reference counting and garbage collection. Please keep this thread on topic - specifically about Weak References and the RFC. If you plan on voting no to this feature, please reply to this thread so we can discuss your concerns. As I've previously stated, I hope that this feature can be released with PHP 5.4 since I need it for my own projects and open source framework. I don't think this is unreasonable since it's such a simple class and also non-controversial. It has been an established feature in many other major OOP languages for years. I will therefore initiate voting as soon as possible (In two weeks). Thanks Etienne Kneuss for creating the first version of the RFC and the patch and others for discussing it. ~Hannes --90e6ba6e8f9ad8dd6104a85a5c9a--