Re: Passing an indefinite number of parameters by reference

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Tom Rogers wrote:
Here is a cutdown version of a class loader I use, It works for php4 and
php5 and with references. It should be easy to modify.

[...]

Sorry, this does not work with references as func_get_args() copies the arguments passed, rather than keeping them as references. This means that the $variable1, $variable2, etc. variables are only references to the copy made with func_get_args(), rather than to the variables passed to the first function.

Chris

--
Chris Jenkinson
chris@xxxxxxxxxxxxx

"Mistrust all in whom the impulse to punish is powerful."
 -- Friedrich Nietzsche, Thus Spoke Zarathustra

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux