Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:46432 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 2377 invoked from network); 15 Dec 2009 20:49:52 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 15 Dec 2009 20:49:52 -0000 Authentication-Results: pb1.pair.com header.from=stas@zend.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=stas@zend.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 212.25.124.185 as permitted sender) X-PHP-List-Original-Sender: stas@zend.com X-Host-Fingerprint: 212.25.124.185 il-mr1.zend.com Received: from [212.25.124.185] ([212.25.124.185:33283] helo=il-mr1.zend.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 90/B3-16228-D66F72B4 for ; Tue, 15 Dec 2009 15:49:51 -0500 Received: from us-gw1.zend.com (unknown [192.168.16.5]) by il-mr1.zend.com (Postfix) with ESMTP id 2D95C50508 for ; Tue, 15 Dec 2009 22:35:22 +0200 (IST) Received: from [192.168.27.13] ([192.168.27.13]) by us-gw1.zend.com with Microsoft SMTPSVC(6.0.3790.3959); Tue, 15 Dec 2009 12:49:44 -0800 Message-ID: <4B27F667.9060403@zend.com> Date: Tue, 15 Dec 2009 12:49:43 -0800 Organization: Zend Technologies User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.5) Gecko/20091204 Lightning/1.0b1pre Thunderbird/3.0 MIME-Version: 1.0 To: internals@lists.php.net References: <4B01A4C2.8030602@gmx.net> <4B27DD0B.1070303@gmx.net> <6571303B-82D2-43E4-8550-E2B9420BA241@pooteeweet.org> <4B27E7A4.6030503@gmx.net> In-Reply-To: <4B27E7A4.6030503@gmx.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 15 Dec 2009 20:49:44.0157 (UTC) FILETIME=[217298D0:01CA7DC8] Subject: Re: [PHP-DEV] Closures and $this: Please vote! From: stas@zend.com (Stanislav Malyshev) Hi! > Ok, so then I call for a vote. Again, here are the options: A+, no direct method calling (get/call problem would be messy) one additional thing: $a = static function () {} should leave $this not bound (in case for some reason you don't want it to be bound, e.g. to avoid keeping reference to a large object) -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com