Re: overprotective?
| From: | Philippe Jausions | Date: | Wed, 06 Apr 2005 17:54:08 +0000 |
| Subject: | Re: overprotective? | ||
| References: | 1 2 3 4 5 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-37120@lists.php.net to get a copy of this message | ||
James Carr wrote:
Actually, I've been having a small problem with PHP5 and protected variables... if a class subclasses another class that has a protected static variable, shouldn't the subclass be able to access it statically? I tried self::$protected_var and parent::$protected_var, both gave me access violation exceptions. Is this a bug, or is this how PHP5's object model is supposed to be? (of course, I to would prefer that variables be protected rather than private, but this is something bugging me of late)Check: http://bugs.php.net/bug.php?id=30451 -Philippe