回复: [PHP-DEV] [RFC] Remove calls with incompatible Context

From: Date: Sat, 04 Aug 2012 03:11:28 +0000
Subject: 回复: [PHP-DEV] [RFC] Remove calls with incompatible Context
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-62031@lists.php.net to get a copy of this message
在 2012年8月4日星期六,上午6:40,Andrew Faulds 写道: > On 03/08/12 23:36, Etienne Kneuss wrote: > > On Mon, Jul 30, 2012 at 7:31 PM, Gustavo Lopes <glopes@nebm.ist.utl..pt > > (mailto:glopes@nebm.ist.utl.pt)> wrote: > > > https://wiki.php.net/rfc/incompat_ctx > > > > > > An RFC for deprecating and removing $this from incompatible context. > > > > > > Comments are welcome. > > 4+ years ago Marcus already wanted to clean that up in PHP6. > > > > Definitely +1. > > > > Best, > > > -- > > > Gustavo Lopes > > > > > > -- > > > PHP Internals - PHP Runtime Development Mailing List > > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > > > > > While we're at it, > > $a = 'this'; > $$a = new StdClass(); > > should be an error. > Also $GLOBALS['this'] = new StdClass(); > > https://bugs.php.net/bug.php?id=52428 then so does: extract(array('this' => 'scalar')); and the similar situation that may import variables. > > -- > Andrew Faulds > http://ajf.me/ > >

« previous php.internals (#62031) next »