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
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:
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
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
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
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
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
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