Date: 03/31/00
- Next message: Bug Database: "[PHP-DEV] PHP 4.0 Bug #3978 Updated: checking for gdImageCreateFromPng in -lgd... no (yes in 4.0 Beta 3)"
- Previous message: Tom Anheyer: "Re: [PHP-DEV] PHP 4.0 Bug #3976: mysql_query produces warnings (f wd)"
- Next in thread: Zeev Suraski: "Re: [PHP-DEV] PHP 4.0 Bug #3993: func_num_args, func_get_arg, and func_get_args don't work"
- Reply: Zeev Suraski: "Re: [PHP-DEV] PHP 4.0 Bug #3993: func_num_args, func_get_arg, and func_get_args don't work"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
From: sheng_liang <email protected>
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);
-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Bug Database: "[PHP-DEV] PHP 4.0 Bug #3978 Updated: checking for gdImageCreateFromPng in -lgd... no (yes in 4.0 Beta 3)"
- Previous message: Tom Anheyer: "Re: [PHP-DEV] PHP 4.0 Bug #3976: mysql_query produces warnings (f wd)"
- Next in thread: Zeev Suraski: "Re: [PHP-DEV] PHP 4.0 Bug #3993: func_num_args, func_get_arg, and func_get_args don't work"
- Reply: Zeev Suraski: "Re: [PHP-DEV] PHP 4.0 Bug #3993: func_num_args, func_get_arg, and func_get_args don't work"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

