Re: [PHP-DEV] [VOTE] Allow non-variable arguments to empty()

2012-04-28 Thread Laruence
On Sun, Apr 29, 2012 at 5:05 AM, Nikita Popov wrote: > On Thu, Apr 19, 2012 at 1:57 AM, Kris Craig wrote: >> "There'd be a minimum of 2 weeks between when an RFC that touches the >> language is brought up on this list and when it's voted on is required. >> Other RFCs might use a smaller timeframe

Re: [PHP-DEV] Function boolval()

2012-04-28 Thread Sherif Ramadan
> > $bools = array_map(function($a){ return((boolean) $a); }, range('a', 'z')); > $bools = array_map('boolval', range('a', 'z')); > > Second one seems more readable to me... > > Sorry, I forget to hit reply-all sometimes... So lets try that again... Why is this going to be more beneficial to imp

Re: [PHP-DEV] call user defined function with args

2012-04-28 Thread Yader Hernandez
On Sat, Apr 28, 2012 at 3:15 PM, Nikita Popov wrote: > On Sat, Apr 28, 2012 at 11:49 PM, Yader Hernandez > wrote: > > I had a look at > > > http://lxr.php.net/opengrok/xref/PHP_5_4/ext/standard/basic_functions.c#4714 > > and > > I don't understand how it's passing the arguments into the closure g

Re: [PHP-DEV] call user defined function with args

2012-04-28 Thread Nikita Popov
On Sat, Apr 28, 2012 at 11:49 PM, Yader Hernandez wrote: > I had a look at > http://lxr.php.net/opengrok/xref/PHP_5_4/ext/standard/basic_functions.c#4714 > and > I don't understand how it's passing the arguments into the closure given by > the user. > > I can successfully call the closure given, b

Re: [PHP-DEV] call user defined function with args

2012-04-28 Thread Yader Hernandez
On Fri, Apr 27, 2012 at 1:06 AM, jpauli wrote: > You might be interested by zend_call_method_with_[XXX]_params() as > well http://lxr.php.net/xref/PHP_5_3/Zend/zend_interfaces.h > > Julien.Pauli > > On Fri, Apr 27, 2012 at 8:51 AM, Laruence wrote: > > Hi: > > you can refer to zif_call_user_func

Re: [PHP-DEV] [VOTE] Allow non-variable arguments to empty()

2012-04-28 Thread Kris Craig
On Sat, Apr 28, 2012 at 2:05 PM, Nikita Popov wrote: > On Thu, Apr 19, 2012 at 1:57 AM, Kris Craig wrote: > > "There'd be a minimum of 2 weeks between when an RFC that touches the > > language is brought up on this list and when it's voted on is required. > > Other RFCs might use a smaller timefr

Re: [PHP-DEV] [VOTE] Allow non-variable arguments to empty()

2012-04-28 Thread Nikita Popov
On Thu, Apr 19, 2012 at 1:57 AM, Kris Craig wrote: > "There'd be a minimum of 2 weeks between when an RFC that touches the > language is brought up on this list and when it's voted on is required. > Other RFCs might use a smaller timeframe, but it should be at least a week." Now already more than

Re: [PHP-DEV] Function boolval()

2012-04-28 Thread Sebastian Krebs
Am 28.04.2012 06:27, schrieb Kalle Sommer Nielsen: Hi 2012/4/27 Jille Timmermans: Hi, I suggest we add a function boolval(). It simply converts the given argument to a boolean, like strval(), intval() and floatval(). I already have an implementation ready[1]. Why? * It is missing in the curre

Re: [PHP-DEV] considering to remove ext/imap from master

2012-04-28 Thread Pierre Joye
hi, On Sat, Apr 28, 2012 at 3:15 AM, Stas Malyshev wrote: > Hi! > >> May I ask why you agreed to move sqlite away? That is a very close >> situation (well, better as sqlite library status was way better than >> current c-client). > > There's sqlite3, but nothing like this for imap. If there were

Re: [PHP-DEV] considering to remove ext/imap from master

2012-04-28 Thread Lester Caine
Stas Malyshev wrote: > May I ask why you agreed to move sqlite away? That is a very close > situation (well, better as sqlite library status was way better than > current c-client). There's sqlite3, but nothing like this for imap. If there were another superior imap extension it would be diff