Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:74202 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 55163 invoked from network); 14 May 2014 18:06:15 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 May 2014 18:06:15 -0000 Authentication-Results: pb1.pair.com header.from=swhitemanlistens-software@cypressintegrated.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=swhitemanlistens-software@cypressintegrated.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain cypressintegrated.com designates 173.1.104.101 as permitted sender) X-PHP-List-Original-Sender: swhitemanlistens-software@cypressintegrated.com X-Host-Fingerprint: 173.1.104.101 rproxy2-b-iv.figureone.com Received: from [173.1.104.101] ([173.1.104.101:53746] helo=rproxy2-b-iv.figureone.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 09/0E-15285-590B3735 for ; Wed, 14 May 2014 14:06:14 -0400 Received: from 124.1.168.192.in-addr.arpa ([108.12.130.219]) by rproxy2-b-iv.figureone.com (Brand New Heavy v1.0) with ASMTP id AXU01209 for ; Wed, 14 May 2014 11:06:09 -0700 Date: Wed, 14 May 2014 14:06:23 -0400 Reply-To: Sanford Whiteman X-Priority: 3 (Normal) Message-ID: <387403356.20140514140623@cypressintegrated.com> To: Levi Morrison In-Reply-To: References: <536D3C30.9010801@sugarcrm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Anonymous functions inside static methods. From: swhitemanlistens-software@cypressintegrated.com (Sanford Whiteman) > Basically the closures aren't respecting late static binding and I > am pretty sure it was just an oversight, not a conscious decision. I feel you're right and a bug should be submitted. Closures (speaking across languages) are supposed to stay aware of their lexical scope, but that is what get_class() is for, not get_called_class(). -- S.