Re: __call and static methods
| From: | Curt Zirzow | Date: | Wed, 29 Sep 2004 02:37:59 +0000 |
| Subject: | Re: __call and static methods | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-198139@lists.php.net to get a copy of this message | ||
* Thus wrote Jackson Miller:
> So, now you have found the static method docs, and you have found the
> very minimal __call() docs but you have not come close to answering
> anything about using call with static methods.
>
> For those who seem to miss the point, a static method call would be like:
> $a = Caller::test(1, "2", 3.4, true);
>
> I have tried defining __call as a static method, but that does not
> give the desired result either.
__call() is only available with a scope of an instance of an
object. You can suggest adding this as a Feature/Request at
bugs.php.net, if you desire such a thing.
Curt
--
The above comments may offend you. flame at will.