Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:46426 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 82758 invoked from network); 15 Dec 2009 19:03:32 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 15 Dec 2009 19:03: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 Received: from [213.165.64.20] ([213.165.64.20:51836] helo=mail.gmx.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id FF/10-16228-08DD72B4 for ; Tue, 15 Dec 2009 14:03:31 -0500 Received: (qmail invoked by alias); 15 Dec 2009 19:03:25 -0000 Received: from p54A16E30.dip.t-dialin.net (EHLO chris-se.dyndns.org) [84.161.110.48] by mail.gmx.net (mp060) with SMTP; 15 Dec 2009 20:03:25 +0100 X-Authenticated: #186999 X-Provags-ID: V01U2FsdGVkX1/kNjYSQI3ktrAFoixINfZ1WR2sFYaQ6BPIE4D0b+ 8HPE3f4Eqoxyfz Received: from [192.168.0.175] (HSI-KBW-091-089-022-117.hsi2.kabelbw.de [91.89.22.117]) by chris-se.dyndns.org (Postfix) with ESMTP id 9E44C3F84 for ; Tue, 15 Dec 2009 20:02:51 +0100 (CET) Message-ID: <4B27DD0B.1070303@gmx.net> Date: Tue, 15 Dec 2009 20:01:31 +0100 User-Agent: Thunderbird 2.0.0.21 (X11/20090302) MIME-Version: 1.0 To: internals@lists.php.net References: <4B01A4C2.8030602@gmx.net> In-Reply-To: <4B01A4C2.8030602@gmx.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.63 Subject: Re: [PHP-DEV] Closures and $this From: chris_se@gmx.net (Christian Seiler) Hello again, > Discuss away! I'm a little disappointed by the non-outcome of this debate. Very few people have responded and most of them seem to agree proposal (A) should be implemented, perhaps with the additional bind/bindTo as in my proposal and perhaps not. The problem here is: (A) was exactly the thing that was implemented and that people started to have a problem with as soon as the first or second beta of PHP 5.3 was released. And because the feedback came in so late, Lukas & Johannes decided to remove $this support from closures for PHP 5.3 in order to be able to decide that later on. So basically we're at the same point where we were a little more year ago: There's an RFC for this (the semantics of $this support were discussed in the original closures RFC!) and the people who read it on internals@ support it. However, I predict that if we implement exactly the semantics that the RFC proposes, we will get into the same discussion we had with PHP 5.3 just before the release of PHP 6... (or 5.4 should there be one). So: What now? Regards, Christian