Re: [PHP-DEV] Bring back call-time pass-by-reference

2007-11-18 Thread Brian Moon
Karoly Negyesi wrote: Dear Brian, Say, you have a CMS which generally calls some kind of functions and some of them might need to modify one array the other needs to modify two arrays... Currently you need to wrap these into a "arguments" array otherwise func_get_args will butcher your reference

Re: [PHP-DEV] Bring back call-time pass-by-reference

2007-11-18 Thread Karoly Negyesi
I try to be constructive here -- I might end up as a moron, I do not know, sorry -- but what about adding a parameter to func_get_arg to get the argument by reference? -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Bring back call-time pass-by-reference

2007-11-18 Thread Karoly Negyesi
http://blog.phpdoc.info/archives/3-PHP-Fun-Variable-Arguments-Be-Reference.html just an example from 2.5yrs ago. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Bring back call-time pass-by-reference

2007-11-17 Thread Cristian Rodriguez
2007/11/17, Karoly Negyesi <[EMAIL PROTECTED]>: > There are things you can't without call time > pass-by-reference, huh ? are you seriuos ? care to show some proof of your statements ? -- http://www.kissofjudas.net/ -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, vis

Re: [PHP-DEV] Bring back call-time pass-by-reference

2007-11-17 Thread Gergely Hodicska
Hi! some of them might need to modify one array the other needs to modify two arrays... But every function knows the number of its own arguments, isn't it? array otherwise func_get_args will butcher your references. This behavior has nothing to do with the call-time-pass-reference settings,

Re: [PHP-DEV] Bring back call-time pass-by-reference

2007-11-17 Thread Gergely Hodicska
Say, you have a CMS which generally calls some kind of functions and some of them might need to modify one array the other needs to modify two arrays... Currently you need to wrap these into a "arguments" array otherwise func_get_args will butcher your references. In PHP6 allow_call_time_pass_ref

Re: [PHP-DEV] Bring back call-time pass-by-reference

2007-11-17 Thread Stanislav Malyshev
Say, you have a CMS which generally calls some kind of functions and some of them might need to modify one array the other needs to modify two arrays... Currently you need to wrap these into a "arguments" array otherwise func_get_args will butcher your references. Can you give a short code examp

Re: [PHP-DEV] Bring back call-time pass-by-reference

2007-11-17 Thread Karoly Negyesi
Dear Brian, Say, you have a CMS which generally calls some kind of functions and some of them might need to modify one array the other needs to modify two arrays... Currently you need to wrap these into a "arguments" array otherwise func_get_args will butcher your references. Regards, NK -- PH

Re: [PHP-DEV] Bring back call-time pass-by-reference

2007-11-17 Thread Brian Moon
Karoly Negyesi wrote: Hi, Although this should be an old hat, I am surprised PHP5 has not fixed it, let's fix it in PHP6. There are things you can't without call time pass-by-reference, most of all variables arguments with references. So, please de-deprecate it. I am feeling froggy. I will bi

[PHP-DEV] Bring back call-time pass-by-reference

2007-11-17 Thread Karoly Negyesi
Hi, Although this should be an old hat, I am surprised PHP5 has not fixed it, let's fix it in PHP6. There are things you can't without call time pass-by-reference, most of all variables arguments with references. So, please de-deprecate it. Thanks much, Karoly Negyesi -- PHP Internals - PHP Ru