Re: Protected static props redeclared as public share value across classes
| From: | Lokrain | Date: | Mon, 28 Jan 2008 16:39:59 +0000 |
| Subject: | Re: Protected static props redeclared as public share value across classes | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-34964@lists.php.net to get a copy of this message | ||
Hi All,
A property can share it's value with it's parent but methods need to call
parent::$method() and this is not done by default that is why the behavior
is different. Is that the right behavior?! I really don't know. I think the
inheritance of the static methods as two distinct methods is right
regardless any visibility modifiers. So if something needs to be patched it
need to be in property inheritance rules, or just accept the evil reality :)
Best Regards, Dimitar Isusov