Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:48025 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 90504 invoked from network); 20 Apr 2010 18:41:27 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Apr 2010 18:41:27 -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 63.205.162.117 as permitted sender) X-PHP-List-Original-Sender: stas@zend.com X-Host-Fingerprint: 63.205.162.117 us-mr1.zend.com Received: from [63.205.162.117] ([63.205.162.117:43147] helo=us-mr1.zend.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 29/D7-52844-455FDCB4 for ; Tue, 20 Apr 2010 14:41:26 -0400 Received: from us-gw1.zend.com (us-ex1.zend.net [192.168.16.5]) by us-mr1.zend.com (Postfix) with ESMTP id 396E243CD4; Tue, 20 Apr 2010 11:41:39 -0700 (PDT) Received: from [192.168.27.11] ([192.168.27.11]) by us-gw1.zend.com with Microsoft SMTPSVC(6.0.3790.4675); Tue, 20 Apr 2010 11:41:21 -0700 Message-ID: <4BCDF551.5070409@zend.com> Date: Tue, 20 Apr 2010 11:41:21 -0700 Organization: Zend Technologies User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.9) Gecko/20100317 Lightning/1.0b1 Thunderbird/3.0.4 MIME-Version: 1.0 To: "mathieu.suen" CC: internals@lists.php.net References: <4B01A4C2.8030602@gmx.net> <4B27DD0B.1070303@gmx.net> <6571303B-82D2-43E4-8550-E2B9420BA241@pooteeweet.org> <4B27E7A4.6030503@gmx.net> <4B335C60.2070403@gmx.net> <4BBE4C1A.1090301@zend.com> <4BCD6202.8030301@easyflirt.com> In-Reply-To: <4BCD6202.8030301@easyflirt.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 20 Apr 2010 18:41:21.0876 (UTC) FILETIME=[12944940:01CAE0B9] Subject: Re: What about static/self was: (Re: [PHP-DEV] Closures and $this) From: stas@zend.com (Stanislav Malyshev) Hi! > Also $this have been wildly discuss here, but the same discussion can be > apply to static/self. > > self might be simple to figure out how to bind within a closure. > It can be bind to the name of the class where the closure is define. I would guess self binds to the scope, and static binds to the called scope (though in the case of closure it'd probably be the same?), but I'll check it and add some tests for it. Thanks for bringing this up, this is indeed something that wasn't covered before. > Is there a RFC about it? There is the RFC about closure object support, but I don't think these matters were covered there. -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com