[PHP-DEV] Re: =?utf-8?q?svn:_/php/php-src/trunk/Zend/_zend.h_zend=5FAPI.c_zend=5FAPI.h_zend=5Fbuiltin=5Ffunctions.c_zend=5Fconstants.c_zend=5Fexecute.c_zend=5Fini.c_zend=5Flist.c_zend=5Flist.h_zend=5F

2010-10-15 Thread Michael Wallner
On 10/14/2010 11:33 PM, Hartmut Holzgraefe wrote: hholzgra Thu, 14 Oct 2010 21:33:10 + Revision: http://svn.php.net/viewvc?view=revisionrevision=304407 Log: marked char pointer arguments as const in lots of places where strings pointed to are not modified to

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

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 packaging

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 this. See

[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' = 'br', 'clean' = true); and define them like this: /** * function to do stuff * @param integer $a * @param integer $b * @param string $separator * Optional,

Re: [PHP-DEV] Named parameters

2010-10-15 Thread Michael Shadle
On Fri, Oct 15, 2010 at 10:26 AM, G M greg...@gregory.net 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' = 'br', 'clean' = true); I don't like having the never ending growing list of arguments issue, but

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 mike...@gmail.com: On Fri, Oct 15,

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