func_get_arg() does not appear to be allowed to be used as a function argument itself within class constructors in PHP 5.0.2 (wonk-ay!!!):
function__construct()
{
foreach (func_get_args() as$name=>$value)
{
echo <<$name:$value
EOT;
}
}
}
classDEFextendsABC{
function__construct()
{parent::__construct(func_get_arg(0),func_get_arg(1),func_get_arg(2));
}
}$def= newDEF(123123,"asdfasdf","blahblahblah");?>
The above script generates:
Fatal error: func_get_arg(): Can't be used as a function parameter in c:Inetpubwwwrootphpwasrcchapter10xxx.php on line 23
There are, however, no problems when passing these as parameters to regular functions.