Re: $arr = array('Hello', 'world'); $arr();

From: 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 [email protected] to get a copy of this message
2011/6/5 Stas Malyshev <[email protected]>

> 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


Thread (26 messages)

« previous php.internals (#52973) next »