Re: Inconsistencies in callable, call_user_func and direct variable calls
| From: | Andrea Faulds | Date: | Tue, 20 Jan 2015 20:57:33 +0000 |
| Subject: | Re: Inconsistencies in callable, call_user_func and direct variable calls | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-80900@lists.php.net to get a copy of this message | ||
Hey Marc,
> On 20 Jan 2015, at 20:54, Marc Bennewitz <dev@mabe.berlin> wrote:
>
> valid for call_user_func[_array] and callable type-hint but invalid for for direct variable
> calls:
> - string "MyClass::staticFunc"
> - string "self::staticFunc"
> - string "static::staticFunc"
> - string "parent::func"
> - string "parent::staticFunc"
>
> see http://3v4l.org/1oSO3
>
> Thoughts ?
I think it’d make sense if it was supported for normal variable function calls. It’s the most
intuitive behaviour.
Thanks.
--
Andrea Faulds
http://ajf.me/