Re: $arr = array('Hello', 'world'); $arr();
| From: | Felipe Pena | Date: | Sun, 05 Jun 2011 21:16:14 +0000 |
| Subject: | Re: $arr = array('Hello', 'world'); $arr(); | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-52973@lists.php.net to get a copy of this message | ||
2011/6/5 Stas Malyshev <smalyshev@sugarcrm.com>
> Hi!
>
>
> We have the code to initialize the call from a object variable, and string
>> variable (function only) in this exact opcode ZEND_INIT_FCALL_BY_NAME,
>> which
>> now treat the array case as well, there is no other place doing such
>> stuff.
>>
>
> What about call_user_func() implementation? It must be doing pretty much
> the same thing.
>
>
1. We do not use zend_fcall_info stuff in the VM (which zend_is_callable
works in)
2. We have to use zend_do_fcall_common_helper instead of
zend_call_function() in the VM
--
Regards,
Felipe Pena