Re: [PHP-DEV] Named parameters

2010-10-15 Thread Brian Moon
This has been discussed to death. Please see the archives. It has been turned down multiple times. -- Brian. http://brian.moonspot.net/ -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Named parameters

2010-10-15 Thread G M
It's true that you can already do something similar -- although not as easily. I personally always use this pattern: function stuff($required1, $required2, $options = array()) { extract($options); } This still, however, makes everyone who call my functions have to do a lot of extra typing:

Re: [PHP-DEV] Named parameters

2010-10-15 Thread Andre Baumeier
I was thinking about passing an array at first. But because of bloated handling of correct type of each argument in the array I use an object for passing additional "setting" variables. Von meinem iPhone gesendet Am 15.10.2010 um 19:28 schrieb "Michael Shadle" : > On Fri, Oct 15, 2010 at 10:26

Re: [PHP-DEV] Named parameters

2010-10-15 Thread Michael Shadle
On Fri, Oct 15, 2010 at 10:26 AM, G M wrote: > Okay so I am thinking about submitting a patch to PHP that would enable you > to call functions like this: > > stuff(1, 2, 'separator' => '', 'clean' => true); I don't like having the never ending growing list of arguments issue, but I just use fun

[PHP-DEV] Named parameters

2010-10-15 Thread G M
Okay so I am thinking about submitting a patch to PHP that would enable you to call functions like this: stuff(1, 2, 'separator' => '', 'clean' => true); and define them like this: /** * function to do stuff * @param integer $a * @param integer $b * @param string $separator * Optional, y

Re: [PHP-DEV] build sapi's separately

2010-10-15 Thread Johannes Schlüter
On Fri, 2010-10-15 at 12:27 +0100, Dave Ingram wrote: > On 10/14/10 12:04, Enrico Weigelt wrote: > > is it already possible to build the sapi modules separately ? > > I'd like to split them off into completely separate packages > > for easier systems maintenance. > > Various distros already do thi

Re: [PHP-DEV] build sapi's separately

2010-10-15 Thread Dave Ingram
On 10/14/10 12:04, Enrico Weigelt wrote: > is it already possible to build the sapi modules separately ? > I'd like to split them off into completely separate packages > for easier systems maintenance. Various distros already do this. See for example the Red Hat PHP RPM. It depends which packagin

[PHP-DEV] build sapi's separately

2010-10-15 Thread Enrico Weigelt
Hi folks, is it already possible to build the sapi modules separately ? I'd like to split them off into completely separate packages for easier systems maintenance. cu -- -- Enrico Weigelt, metux IT service -- http://www.met