Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:53977 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 21466 invoked from network); 16 Jul 2011 08:48:34 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 Jul 2011 08:48:34 -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.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:49323] helo=mail-iy0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 44/50-13103-160512E4 for ; Sat, 16 Jul 2011 04:48:34 -0400 Received: by iym1 with SMTP id 1so1938002iym.29 for ; Sat, 16 Jul 2011 01:48:31 -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=AEf4mtrKpOc0e4dXXejCUD5xvWCxYCTAsg5T+cnrk+Q=; b=ZD6pS7dqYlmjzPV6qJ76mGtxQ9LFIpjRFJfUjPpSh1If3MqogVTjc8rFd1JQWGTb7g OuK6yu0xQuMXTHPghRE12+sOIKNBlkVNnCcVlO+Ulbw3Mfk0Sf22bP1w6dqjCJctKOF7 RFSBYjl9+ZoPMlAyZIklQh7xNbJO/33YfdpNc= MIME-Version: 1.0 Received: by 10.231.52.209 with SMTP id j17mr3615772ibg.94.1310806111422; Sat, 16 Jul 2011 01:48:31 -0700 (PDT) Received: by 10.231.34.65 with HTTP; Sat, 16 Jul 2011 01:48:31 -0700 (PDT) In-Reply-To: References: Date: Sat, 16 Jul 2011 10:48:31 +0200 Message-ID: To: Etienne Kneuss , internals@lists.php.net Content-Type: multipart/alternative; boundary=002215048eafa409f804a82bd497 Subject: Re: [PHP-DEV] weak references From: landeholm@gmail.com (Hannes Landeholm) --002215048eafa409f804a82bd497 Content-Type: text/plain; charset=ISO-8859-1 Hello, I just realized you could actually utilize the __destruct method to catch the event I described in my last post. The SplWeakRef class as currently defined in the RFC would therefore suffice to build a userland class that automatically garbage collects indexes. ~Hannes --002215048eafa409f804a82bd497--