#14705 [Opn->Bgs]: func_get_args(): return references to params?
| From: | moriyoshi@php.net | Date: | Sat, 18 Jan 2003 16:43:09 +0000 |
| Subject: | #14705 [Opn->Bgs]: func_get_args(): return references to params? | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-30477@lists.php.net to get a copy of this message | ||
ID: 14705
Updated by: moriyoshi@php.net
Reported By: nick_eby@bonzidev.com
-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] nick_eby@bonzidev.com
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