Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:53963 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 68177 invoked from network); 14 Jul 2011 19:42:06 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 Jul 2011 19:42:06 -0000 Authentication-Results: pb1.pair.com header.from=tyra3l@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=tyra3l@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.160.170 as permitted sender) X-PHP-List-Original-Sender: tyra3l@gmail.com X-Host-Fingerprint: 209.85.160.170 mail-gy0-f170.google.com Received: from [209.85.160.170] ([209.85.160.170:56007] helo=mail-gy0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 86/93-39482-C864F1E4 for ; Thu, 14 Jul 2011 15:42:04 -0400 Received: by gyb13 with SMTP id 13so287625gyb.29 for ; Thu, 14 Jul 2011 12:42:02 -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 :content-transfer-encoding; bh=7GrsHy9ItbaR2QhggWsRCY7cpvxPYEG9nc1F3hLOMgs=; b=J3PojMDVKyXlkpZnXvyMe6c3lAmNzmas7y7o1Gp4wT6T0JAf+Wvh8Dk10sYsxSvnNS nvbq7n/ujPDDxhlLwiQsPwHoa7hQuDkEya6WMI7LPBxbLjbn2kJzV5V1LUoHi5lTDoNV 7xoSVnc2iIv0tQFHQiQpUItX+IxSxHyZ6+ITk= MIME-Version: 1.0 Received: by 10.236.191.9 with SMTP id f9mr4069273yhn.22.1310672521859; Thu, 14 Jul 2011 12:42:01 -0700 (PDT) Received: by 10.147.38.17 with HTTP; Thu, 14 Jul 2011 12:42:01 -0700 (PDT) Date: Thu, 14 Jul 2011 21:42:01 +0200 Message-ID: To: PHP Internals , Hannes Landeholm Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: weak references From: tyra3l@gmail.com (Ferenc Kovacs) To spare the "5.4 features vote" thread from the off-topic discussion, we can continue here. Hannes Landeholm brought this idea up, see http://news.php.net/php.internals/53956 and http://news.php.net/php.internals/53959 I would suggest that Hannes create an rfc, and add some examples and introduce the weak references in general and how this can be useful, what problems do they solve (it was discussed in the bugreport, but it wasn't clear as far as I can tell from the comments). if I understand this right, Hannes proposed adding a new Spl class(interface?), which can store and retrive a collection of variables without incrementing the refcounts, so they can be freed if they aren't used other than in this collection. Hannes please correct me if I'm wrong somewhere. --=20 Ferenc Kov=C3=A1cs @Tyr43l - http://tyrael.hu