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> 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
--
Andrew Faulds
http://ajf.me/