Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:46066 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 38332 invoked from network); 16 Nov 2009 19:17:32 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 Nov 2009 19:17:32 -0000 Authentication-Results: pb1.pair.com header.from=chris_se@gmx.net; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=chris_se@gmx.net; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmx.net designates 213.165.64.20 as permitted sender) X-PHP-List-Original-Sender: chris_se@gmx.net X-Host-Fingerprint: 213.165.64.20 mail.gmx.net Linux 2.6 Received: from [213.165.64.20] ([213.165.64.20:39318] helo=mail.gmx.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id FF/A2-20549-A45A10B4 for ; Mon, 16 Nov 2009 14:17:31 -0500 Received: (qmail invoked by alias); 16 Nov 2009 19:17:10 -0000 Received: from p54A16B38.dip.t-dialin.net (EHLO chris-se.dyndns.org) [84.161.107.56] by mail.gmx.net (mp052) with SMTP; 16 Nov 2009 20:17:10 +0100 X-Authenticated: #186999 X-Provags-ID: V01U2FsdGVkX1/fX9RcDZ/fjwM72qy1KjWQ7blbnO5ufTpjQL1lqU tfNGVaekNflW9R Received: from [192.168.0.175] (HSI-KBW-082-212-059-033.hsi.kabelbw.de [82.212.59.33]) by chris-se.dyndns.org (Postfix) with ESMTP id 9A08632C4 for ; Mon, 16 Nov 2009 20:16:28 +0100 (CET) Message-ID: <4B01A4C2.8030602@gmx.net> Date: Mon, 16 Nov 2009 20:15:14 +0100 User-Agent: Thunderbird 2.0.0.21 (X11/20090302) MIME-Version: 1.0 To: internals@lists.php.net X-Enigmail-Version: 0.96.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-FuHaFi: 0.59 Subject: Closures and $this From: chris_se@gmx.net (Christian Seiler) Hi, since a few months have passed since the last discussion on this topic and perhaps people had time to gather some experience with the current closure implementation in PHP 5.3 I'd like to restart the debate on $this in closures and object extension. Foreword: The discussion should center on the future behaviour of PHP 6 ONLY. Whether or not a backport is even possible (binary compability etc.) or should even be done should be topic of a separate discussion and should *NOT* influence the decision. The ONLY goal of this discussion should be to agree on a SANE way of implementing $this for closures for PHP 6. I've updated the original RFC I wrote a tiny bit (I didn't change much): The basic outline is the following: * In the first section I explain the general issue. * In the second section I show the proposals that were made on internals@ before I wrote the RFC. * In the third section I compare the approaches and explain why the approaches (B) and (D) are inconsistent. * In the fourth section I propose a new approach (bindTo) that was only briefly discussed after the original RFC. Please read the complete RFC and try to understand the points I'm trying to make. If something is unclear, *please* ask first. In the past discussion I had the impression that a lot of people understood only partial aspects of the problem which made the discussion extremely noisy. I believe that is a disservice to the issue. However, now we have the huge advantage of NOT having an immanent deadline for a release. I hope this will enable a consensus on this issue. Discuss away! Regards, Christian