Re: Re: cvs: pecl /newt newt.c

From: Date: Mon, 16 Aug 2004 14:51:02 +0000
Subject: Re: Re: cvs: pecl /newt newt.c
References: 1 2 3 4  Groups: php.pecl.dev 
Request: Send a blank email to pecl-dev+get-1176@lists.php.net to get a copy of this message
On Mon, Aug 16, 2004 at 02:59:25PM +0100, Swithun Crowe wrote: > Hello > > Has zend_get_parameters_array_ex been suggested yet? > > http://www.php.net/manual/en/zend.arguments.variable.php > > You do need to declare an array before calling this, so there would be a > hard coded limit to the number of arguments your function could accept. > But if this isn't a problem, zend_get_parameters_array_ex would be the > right function to use. > > You could use the C function vsprintf by constructing a va_list from the > optional arguments - probably quicker than calling a PHP function to do > the same job. > Unfortunately, construction of va_list is not a portable thing ... I'm a bit afraid of using this technique :) -- Best regards, Michael

« previous php.pecl.dev (#1176) next »