Hi 2014-08-13 13:02 GMT+02:00 Ferenc Kovacs <tyr...@gmail.com>: > agree, and I thought about mentioning that, but I left that out, because > I'm not proposing to remove that ability (and I see more use-cases for that > as mentioned in my previous email) but stating that this patch would make > an arbitrary distinction between the normal and the default cases.
In PHP we already disallow overriding $this, like: class A { public function B() { $this = 'hello'; // error ${'this'} = 'hello'; // error ${'t' . 'his'} = 'hello'; // works } } so agreed too, we cannot disallow such cases that can be variable with any gain, and it does make sense you cannot with $this, but if you hack it like above, then you are asking for trouble anyway -- regards, Kalle Sommer Nielsen ka...@php.net -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php