#27887 [NEW]: func_get_args() can't accept to be in second argument
| From: | dams@php.net | Date: | Tue, 06 Apr 2004 14:41:55 +0000 |
| Subject: | #27887 [NEW]: func_get_args() can't accept to be in second argument | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-57587@lists.php.net to get a copy of this message | ||
From: dams@php.net
Operating system: many
PHP version: 4.3.5
PHP Bug Type: Scripting Engine problem
Bug description: func_get_args() can't accept to be in second argument
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 bug report at http://bugs.php.net/?id=27887&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=27887&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=27887&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=27887&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=27887&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=27887&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=27887&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=27887&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=27887&r=support
Expected behavior: http://bugs.php.net/fix.php?id=27887&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=27887&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=27887&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=27887&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=27887&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=27887&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=27887&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=27887&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=27887&r=float