Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:57328 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 27026 invoked from network); 10 Jan 2012 18:21:01 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 10 Jan 2012 18:21:01 -0000 Authentication-Results: pb1.pair.com smtp.mail=danielc@analysisandsolutions.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=danielc@analysisandsolutions.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain analysisandsolutions.com from 166.84.1.89 cause and error) X-PHP-List-Original-Sender: danielc@analysisandsolutions.com X-Host-Fingerprint: 166.84.1.89 mailbackend.panix.com Solaris 10 (beta) Received: from [166.84.1.89] ([166.84.1.89:48624] helo=mailbackend.panix.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 25/A9-05779-B818C0F4 for ; Tue, 10 Jan 2012 13:20:59 -0500 Received: from panix5.panix.com (panix5.panix.com [166.84.1.5]) by mailbackend.panix.com (Postfix) with ESMTP id D31B82E1A0; Tue, 10 Jan 2012 13:20:56 -0500 (EST) Received: by panix5.panix.com (Postfix, from userid 14662) id ACA1424251; Tue, 10 Jan 2012 13:20:56 -0500 (EST) Date: Tue, 10 Jan 2012 13:20:56 -0500 To: Etienne Kneuss Cc: internals@lists.php.net Message-ID: <20120110182056.GA815@panix.com> References: <4F0810E7.2050904@php.net> <4F0811AF.5090603@sugarcrm.com> <4F081300.6020909@php.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) Subject: Re: [PHP-DEV] "Cannot use $this as lexical variable" message still in PHP 5.4 From: danielc@analysisandsolutions.com (Daniel Convissor) Hi Etienne: > To me it seems similar to assigning $this, only here it is via special > closure syntax. Since this code is no longer necessary, and might conflict > with the rebinding of $this, the error makes sense IMHO. A clearer error message seems appropriate. It should indicate that use($this) is inappropriate, but that $this can be used. Something _like_ "$this is available without being declared." Thanks, --Dan -- T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y data intensive web and database programming http://www.AnalysisAndSolutions.com/ 4015 7th Ave #4, Brooklyn NY 11232 v: 718-854-0335 f: 718-854-0409