Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:25915 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 18345 invoked by uid 1010); 3 Oct 2006 17:07:05 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 18325 invoked from network); 3 Oct 2006 17:07:05 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Oct 2006 17:07:05 -0000 X-Host-Fingerprint: 80.123.98.46 unknown Received: from [80.123.98.46] ([80.123.98.46:13395] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 4B/38-59377-24322254 for ; Tue, 03 Oct 2006 04:45:54 -0400 Message-ID: <4B.38.59377.24322254@pb1.pair.com> To: internals@lists.php.net Date: Tue, 03 Oct 2006 10:46:10 +0200 User-Agent: Thunderbird 1.5.0.5 (X11/20060728) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Posted-By: 80.123.98.46 Subject: zend_fcall_info API From: mike@php.net (Michael Wallner) 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