Re: Revisit: zend_call_method() - n number of arguments
| From: | Nathan Nobbe | Date: | Sun, 23 Oct 2011 15:39:23 +0000 |
| Subject: | Re: Revisit: zend_call_method() - n number of arguments | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-55910@lists.php.net to get a copy of this message | ||
On Sun, Oct 23, 2011 at 12:50 AM, Stas Malyshev <smalyshev@sugarcrm.com>wrote:
> Hi!
>
>
> On 10/22/11 2:36 AM, Nathan Nobbe wrote:
>
>> Hi,
>>
>> Another old issue I'd like to rehash with the upcoming release around the
>> corner [1].
>>
>> I patched 5.4 alpha2 for review [2].
>>
>
> I think better idea would be to add another API function
> (zend_call_method_ex?), that implements arbitrary argument count (either via
> array or via varargs) and make zend_call_method be a case of it, maybe. This
> way you don't have to break existing API and also don't have to stop at 4.
Hi Stas,
That's what this patch does, there is a new function
zend_call_method_multi, which takes an array, and I've revised zend_call
method to use it. I could change it to varargs if that is preferred.
thanks,
-nathan