ID:               14705
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
-Status:           Open
+Status:           Bogus
 Bug Type:         Feature/Change Request
 Operating System: linux
 PHP Version:      4.0.5
 New Comment:

Duplicate of bug #6427
Keep this in one place...



Previous Comments:
------------------------------------------------------------------------

[2001-12-26 16:20:52] [EMAIL PROTECTED]

function pointerTest()
{
        $args = &func_get_args();
        pointerTest2(&$args[0]);
        
        $myP = &$args[0];
        pointerTest2(&$myP);
}

function pointerTest2(&$arg1)
{
        $arg1++;
}

$myVal = 10;
pointerTest(&$myVal);
echo $myVal;
-------------------------
i believe that currently func_get_args() can't return an array of
references.  it also applies to func_get_arg(int) which can't return a
reference to the parameter in question.  could that be changed to allow
user-defined functions on variable-length argument lists that operate
on their parameters by reference?


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


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

Reply via email to