Re: PHP 4.0 Bug #3993: func_num_args, func_get_arg, and func_get_args don't work

From: Date: Fri, 31 Mar 2000 08:25:17 +0000
Subject: Re: PHP 4.0 Bug #3993: func_num_args, func_get_arg, and func_get_args don't work
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-17464@lists.php.net to get a copy of this message
This bug was already reported, confirmed and fixed. You can use the latest CVS, or wait for the final release. Zeev On 31 Mar 2000 sheng_liang@hotmail.com wrote: > From: sheng_liang@hotmail.com > Operating system: Redhat Linux 6.1 > PHP version: 4.0 Release Candidate 1 > PHP Bug Type: Misbehaving function > Bug description: func_num_args, func_get_arg, and func_get_args don't work > > func_num_args, func_get_args, and func_get_arg don't work > in PHP 4.0 RC1. I get an error: > > Can't be used as a function parameter > > even though I am not passing these functions as arguments. > > Try the following code: > > function f() { > $i = func_get_arg(1); > return $i; > } > > print f(2,3); > > > > -- Zeev Suraski <zeev@zend.com> http://www.zend.com/

« previous php.dev (#17464) next »