zend_fcall_info API

From: Date: Tue, 03 Oct 2006 08:46:10 +0000
Subject: zend_fcall_info API
Groups: php.internals 
Request: Send a blank email to internals+get-25915@lists.php.net to get a copy of this message
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

« previous php.internals (#25915) next »