Allow func_get_arg(s) to pass by reference

php.internals

Karoly Negyesi

18 years ago
Hi, I have failed the "state the goal and not the task" rule, sorry. So, my goal is to pass a variable number of arguments of which some could be references. I believed that this needs calltime by-ref calls but obviously need. For func_get_arg, a simple flag could suffice. For func_gets_args, I do not really know -- maybe a param to take all by ref, similar to EXTR_REFS. Thanks, Karoly Negyesi

Stanislav Malyshev

18 years ago
> I have failed the "state the goal and not the task" rule, sorry. > > So, my goal is to pass a variable number of arguments of which some > could be references. I believed that this needs calltime by-ref calls > but obviously need. For func_get_arg, a simple flag could suffice. For > func_gets_args, I do not really know -- maybe a param to take all by > ref, similar to EXTR_REFS.
I think it would make sense to submit is as feature request to bugs.php.net, including the code examples you had in the blog. This would allow better tracking.
-- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com