Edit report at http://bugs.php.net/bug.php?id=6427&edit=1

 ID:                 6427
 Updated by:         [email protected]
 Reported by:        [email protected]
 Summary:            func_get_arg() does not support references
-Status:             Open
+Status:             Bogus
 Type:               Feature/Change Request
-Package:            Feature/Change Request
+Package:            *General Issues
 Operating System:   *
 PHP Version:        4.0.1pl2
 Block user comment: N

 New Comment:

this isn't possiblewith the engine and since PHP 5 way less needed.


Previous Comments:
------------------------------------------------------------------------
[2003-01-18 14:53:21] [email protected]

There are the same requests as this one:



Bug #14705

Bug #15098

Bug #16464



------------------------------------------------------------------------
[2000-09-23 12:22:57] [email protected]

Stas:

 If I possible, I would like to better understand you statement...here
is what I am thinking you mean,

please correct me if I am wrong:

$o=1;

test($o);

echo $o;

function test() {

   $a = &func_get_args();

   /** $a[0] has already been passed as a copy. We have no idea what to
reference it back to! */

}

------------------------------------------------------------------------
[2000-09-20 21:40:09] [email protected]

a function func_get_rarg() should avoid this by treating any function
parameter as a reference (if possible), moved to feature request

------------------------------------------------------------------------
[2000-09-20 18:23:08] [email protected]

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.

------------------------------------------------------------------------
[2000-08-29 21:38:56] [email protected]

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

------------------------------------------------------------------------



-- 
Edit this bug report at http://bugs.php.net/bug.php?id=6427&edit=1

Reply via email to