From: [EMAIL PROTECTED]
Operating system: linux
PHP version: 4.0.5
PHP Bug Type: Feature/Change Request
Bug description: func_get_args(): return references to params?
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 bug report at: http://bugs.php.net/?id=14705&edit=1
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]