|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-01-18 10:43 UTC] moriyoshi@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Nov 06 04:00:02 2025 UTC |
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?