Re: Property Accessors 1.2 : parent::$foo Issue
| From: | Clint Priest | Date: | Sat, 05 Jan 2013 03:25:10 +0000 |
| Subject: | Re: Property Accessors 1.2 : parent::$foo Issue | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-64538@lists.php.net to get a copy of this message | ||
Agreed. Some people may actually be using $parent as a variable name, not difficult to imagine.
So far parent->foo seems to be the answer.
-Clint
On 1/4/2013 4:23 PM, Stas Malyshev wrote:
Hi!-- -ClintOne other possible alternative would be to treat parent "like a variable..." $parent->fooThat would be a big BC problem and also require serious changes to handle it (look how $this is implemented - it's not regular variable at all). So $parent is probably a non-starter.