在 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 <glo...@nebm.ist.utl.pt 
> > (mailto:glo...@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/
>  
>  


Reply via email to