PHP 4.0 Bug #8290 Updated: allow func_*_arg?() functions as function parameters inside a function

From: Date: Mon, 18 Dec 2000 13:35:48 +0000
Subject: PHP 4.0 Bug #8290 Updated: allow func_*_arg?() functions as function parameters inside a function
Groups: php.dev 
Request: Send a blank email to php-dev+get-41741@lists.php.net to get a copy of this message
ID: 8290 User Update by: cynic@mail.cz Status: Analyzed Bug Type: Feature/Change Request Description: allow func_*_arg?() functions as function parameters inside a function no need for constants - func_get_arg() / func_get_args() does that. Previous Comments: --------------------------------------------------------------------------- [2000-12-16 14:31:56] waldschrott@php.net 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] cynic@mail.cz It'd be handy if one could do function foo() { ... $x = bar( func_get_arg( 0 ) ) ; ... } --------------------------------------------------------------------------- Full Bug description available at: http://bugs.php.net/?id=8290

« previous php.dev (#41741) next »