Re: Inconsistencies in callable, call_user_func and direct variable calls
| From: | Yasuo Ohgaki | Date: | Thu, 19 Mar 2015 11:51:31 +0000 |
| Subject: | Re: Inconsistencies in callable, call_user_func and direct variable calls | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-85213@lists.php.net to get a copy of this message | ||
Hi all,
On Sun, Mar 15, 2015 at 7:15 PM, Nicolas Grekas <
nicolas.grekas+php@gmail.com> wrote:
> > >> Foo::bar(); // OK
> > >> ['Foo', 'bar'](); // OK
> > >> 'Foo::bar'(); // FATAL ERROR
> >
>
> Hi,
>
> does this topic need to be addressed before PHP7 goes feature freeze? Or is
> it a bugfix? (Julien already provided a patch)
> I'm not familiar with writing RFCs. I fear I won't be able to handle it on
> schedule if one is required.
> Can someone help please?
It's nice if this bug could be fixed by PHP7.
Distinguishing array and callable is problematic.
Array callable is better to be deprecated in the long run. IMHO.
Regards,
--
Yasuo Ohgaki
yohgaki@ohgaki.net