Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:53984 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 48005 invoked from network); 16 Jul 2011 12:14:32 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 Jul 2011 12:14:32 -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:38756] helo=mail-iw0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 40/20-44143-7A0812E4 for ; Sat, 16 Jul 2011 08:14:31 -0400 Received: by iwn36 with SMTP id 36so2023401iwn.29 for ; Sat, 16 Jul 2011 05:14:28 -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:content-transfer-encoding; bh=Gj1UoqPUO7PE0fYR7EDmTaXDLrBOjKeYJxzRnriJlCU=; b=e42qwsrB6Li+qyzXz1wY8B7Tgh5YkAJK4ECG8SqwMRE8OIA9e/hNE22MBSAtx88cQz SjHrhyY04hoOz0yhnclzsDkirIla1FDww4oY8XYKF2hWlLbmVn6m0919huuIwhqtH01y nOi1qjzOuOsKmTI5wNIzbLObB5wZ+ILx4tG0c= MIME-Version: 1.0 Received: by 10.42.156.129 with SMTP id z1mr4977187icw.159.1310818467044; Sat, 16 Jul 2011 05:14:27 -0700 (PDT) Received: by 10.231.34.65 with HTTP; Sat, 16 Jul 2011 05:14:26 -0700 (PDT) In-Reply-To: References: Date: Sat, 16 Jul 2011 14:14:26 +0200 Message-ID: To: Ferenc Kovacs , internals@lists.php.net Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] weak references From: landeholm@gmail.com (Hannes Landeholm) I'm not familiar with the internal implementation of GC in PHP but if the current garbage collection implementation makes catching the gc event non-trivial I'd agree and vote for postponing my "SplQueue ref_queue" suggestion until the future. It could always be added later and there is the temporary __destruct workaround for the meantime. ~Hannes On 16 July 2011 13:23, Ferenc Kovacs wrote: > > Etienne Kneuss has more knowledge about the implementation, but AFAIK > as we didn't modified the garbage collector we didn't get notified if > a weakreferenced object gets gced, so we can't notify the SplQueue > either. > please be aware that the bigger the change that we introduce it is > less likely that we can make this happen in 5.4, or at all. > > -- > Ferenc Kov=E1cs > @Tyr43l - http://tyrael.hu >