PHP 4.0 Bug #6427 Updated: func_get_arg() does not support references
| From: | Bug Database | Date: | Wed, 20 Sep 2000 22:23:08 +0000 |
| Subject: | PHP 4.0 Bug #6427 Updated: func_get_arg() does not support references | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-33492@lists.php.net to get a copy of this message | ||
ID: 6427
Updated by: stas
Reported By: waldschrott@php.net
Status: Closed
Bug Type: *General Issues
Assigned To:
Comments:
I fear this cannot be done - you should pass a variable by reference from the start, otherwise you
will just assign a reference to a copy.
Previous Comments:
---------------------------------------------------------------------------
[2000-08-29 21:38:56] waldschrott@php.net
func_get_arg() does not support references (see example),
$o=1;
test($o);
echo $o;
function test() {
$l=&func_get_arg(0);
$l=2; }
displays 1, should 2, I think it should be possible changing this without impact, if not perhaps a
func_get_rarg() be fine
---------------------------------------------------------------------------
Full Bug description available at: http://bugs.php.net/?id=6427