Bug #14705: func_get_args(): return references to params?

From: Date: Wed, 26 Dec 2001 21:20:53 +0000
Subject: Bug #14705: func_get_args(): return references to params?
Groups: php.dev 
Request: Send a blank email to php-dev+get-75059@lists.php.net to get a copy of this message
From: nick_eby@bonzidev.com 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

« previous php.dev (#75059) next »