Re: Inconsistencies in callable, call_user_func and direct variable calls
| From: | Stanislav Malyshev | Date: | Sat, 24 Jan 2015 00:15:01 +0000 |
| Subject: | Re: Inconsistencies in callable, call_user_func and direct variable calls | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-81061@lists.php.net to get a copy of this message | ||
Hi!
> Foo::bar(); // OK
> ['Foo', 'bar'](); // OK
> 'Foo::bar'(); // FATAL ERROR
I'm not sure why one would ever need/want the latter. IMO, it just looks
weird.
--
Stas Malyshev
smalyshev@gmail.com