#27887 [Opn->Ver]: func_get_args() can't be used as 2nd parameter for functions
| From: | sniper@php.net | Date: | Tue, 06 Apr 2004 16:52:44 +0000 |
| Subject: | #27887 [Opn->Ver]: func_get_args() can't be used as 2nd parameter for functions | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-57594@lists.php.net to get a copy of this message | ||
ID: 27887
Updated by: sniper@php.net
Reported By: dams@php.net
-Status: Open
+Status: Verified
Bug Type: Scripting Engine problem
Operating System: *
-PHP Version: 4CVS-2004-04-06
+PHP Version: 4CVS, 5CVS (2004-04-06)
Previous Comments:
------------------------------------------------------------------------
[2004-04-06 10:41:55] dams@php.net
Description:
------------
when passing func_get_args() as second parameter of a
function, it complains.
foo('foo', func_get_args());
Fatal error: func_get_args(): Can't be used as a
function parameter in /Users/iboom/Desktop/Journaux/
2004.04/fonctions/arg_defaut.php on line 23
foo(func_get_args(), 'foo');
is OK tough.
So, it won't work with
print join(',',func_get_args());
array_map('foo',func_get_args());
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=27887&edit=1