Re: __invoke() weirdness
| From: | Jack Allnutt | Date: | Mon, 29 Dec 2008 07:09:32 +0000 |
| Subject: | Re: __invoke() weirdness | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-42395@lists.php.net to get a copy of this message | ||
Etienne Kneuss wrote:
Finally, note that you can do that in userland using something looking like: public function __call($name, $args) { return call_user_func_array(array($this->$name, "__invoke"), $args); } It seems like it'd make more sense to allow *all* functions to be called using the 'normal' syntax without having to resort to that userland workaround.