Hi,

I'd like to see zend_fcall_info_init() signature extended with an additional 
'zval *callable_name' argument.
Additionally it seems that a vararg version of the zend_fcall_info_args() 
function would be valuable too:

int zend_fcall_info_argv(zend_fcall_info *fci TSRMLS_DC, int argc, ...)
{
        int          i;
        zval         *arg;
        va_list      argv;

        if (fci->params) {
                while (fci->param_count) {
                        zval_ptr_dtor(fci->params[--fci->param_count]);
                }
                efree(fci->params);
        }
        fci->params = (zval***)safe_emalloc(sizeof(zval**), argc, 0);
        fci->param_count = argc;

        va_start(argv, argc);
        for (i = 0; i < argc; ++i) {
                arg = va_arg(argv, zval *);
                ZVAL_ADDREF(arg);
                fci->params[i] = &arg;
        }
        va_end(argv);
        return SUCCESS;
}

-- 
Michael

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to