Re: Re: more static method fun
| From: | Rob Richards | Date: | Wed, 03 Mar 2004 17:16:38 +0000 |
| Subject: | Re: Re: more static method fun | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-8350@lists.php.net to get a copy of this message | ||
> To quote Microsoft, "this is a feature, not a bug." :) Of course, if
> someone tries to call a non-static method from another completely
> unrelated class, that's just stupid. But there are cases where you
> might want to call a method from a parent class 2 levels up.
I can see calling the method from a parent as valid, but from an unrelated
class I see it as a bug.
When calling a non-static method, it is allowed which it shouldnt be and
when calling a method which can be either, it should be called as a true
static method and not as a method of this unrelated object.
The crashes can be fixed, but imo it should be fixed on the engine level
rather than writing around the engine in the extensions as this behavior is
just wrong.
Rob