ID: 8290
Updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
-Status: Analyzed
+Status: Closed
Bug Type: Feature/Change Request
Operating System: *
PHP Version: 4.0.3pl1
New Comment:
the syntax in the original request works just fine.
Previous Comments:
------------------------------------------------------------------------
[2000-12-18 12:56:47] [EMAIL PROTECTED]
I thought of something like INTERNAL_PARAM_PASSTHROUGH,
otherwise you would have to do
bar(fung_get_arg(0),func_get_arg(1),func_get_arg(2)...)
or
bar(func_get_args())
and then in bar work with an array of args
------------------------------------------------------------------------
[2000-12-18 08:35:48] [EMAIL PROTECTED]
no need for constants - func_get_arg() / func_get_args() does that.
------------------------------------------------------------------------
[2000-12-16 14:31:56] [EMAIL PROTECTED]
agreed, maybe even (as a special case in function calls)
some constant containing the desired argument from function1
eg. __arg0, __arg1
but I guess this would be a performance loss
anyway using func_get_arg? in function calls makes sense
sometimes
------------------------------------------------------------------------
[2000-12-16 02:46:32] [EMAIL PROTECTED]
It'd be handy if one could do
function foo()
{
...
$x = bar( func_get_arg( 0 ) ) ;
...
}
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=8290&edit=1