Re: [PHP-DEV] Variable-length args by reference

2012-04-17 Thread Stefan Neufeind
On 04/18/2012 12:31 AM, Yasuo Ohgaki wrote: > Hi, > > 2012/4/18 Stefan Neufeind : >> On 04/18/2012 12:02 AM, Stefan Neufeind wrote: >>> Hi, >>> >>> the topic of variable argument-lists for functions in connection with >>> getting the parameters by reference came up. This is currently not >>> possi

Re: [PHP-DEV] Variable-length args by reference

2012-04-17 Thread Johannes Schlüter
On Wed, 2012-04-18 at 00:02 +0200, Stefan Neufeind wrote: > How would you think about extending func_get_args() and func_get_arg() > to allow for: > > $args = func_get_args(FUNC_GET_ARGS_BY_REFERENCE); > $arg0 = func_get_arg (0, FUNC_GET_ARGS_BY_REFERENCE); > > (default would be FUNC_

Re: [PHP-DEV] Variable-length args by reference

2012-04-17 Thread Yasuo Ohgaki
Hi, 2012/4/18 Stefan Neufeind : > On 04/18/2012 12:02 AM, Stefan Neufeind wrote: >> Hi, >> >> the topic of variable argument-lists for functions in connection with >> getting the parameters by reference came up. This is currently not >> possible with func_get_args(), though a "hack" with debug_bac

Re: [PHP-DEV] Variable-length args by reference

2012-04-17 Thread Stefan Neufeind
On 04/18/2012 12:02 AM, Stefan Neufeind wrote: > Hi, > > the topic of variable argument-lists for functions in connection with > getting the parameters by reference came up. This is currently not > possible with func_get_args(), though a "hack" with debug_backtrace() is > possible. > > How would

[PHP-DEV] Variable-length args by reference

2012-04-17 Thread Stefan Neufeind
Hi, the topic of variable argument-lists for functions in connection with getting the parameters by reference came up. This is currently not possible with func_get_args(), though a "hack" with debug_backtrace() is possible. How would you think about extending func_get_args() and func_get_arg() to