Re: [PHP4BETA] Varargs user function?

From: Date: Mon, 20 Sep 1999 13:36:55 +0000
Subject: Re: [PHP4BETA] Varargs user function?
References: 1  Groups: php.version4 
Request: Send a blank email to php-version4+get-4669@lists.php.net to get a copy of this message
Zeev Suraski wrote: > Well there's no vote here really, tagging a variable as a varargs is > very problematic. And how difficult would it be to alias ht to $FARGS[] similar to the $GLOBALS[] alias for the global symbol table? And while we are at it $LOCALS[] as an alias for the local symbol table? > However, I added two functions to Zend - zend_num_args() and > zend_get_arg(), which let you access the arguments passed to your function > in an unrestricted manner. This will suffice to write varargs functions, though. Kristian -- Kristian Köhntopp, NetUSE Kommunikationstechnologie GmbH Siemenswall, D-24107 Kiel, Germany, +49 431 386 436 00 Using PHP3? See our web development library at http://phplib.netuse.de/ (We have moved! Update your bookmarks!)

« previous php.version4 (#4669) next »