[PHP-DEV] Updated RFC: Zend Signal Handling

2009-11-20 Thread shire
Lucas and I have re-visited the Zend Signal Handling RFC and have updated the patches for both the 5.3 branch and Trunk: http://wiki.php.net/rfc/zendsignals We updated the patches to deal with a bug fix that allows timeouts within the user space shutdown functions, previously multiple timeout

Re: [PHP-DEV] suggestion about ternary operator

2009-11-20 Thread Alban
Le Fri, 20 Nov 2009 23:28:39 -0600, Larry Garfield a écrit : > On Friday 20 November 2009 11:12:29 pm Alban wrote: > >> This is not a big problem but if a solution exists, this would be so >> cool ! Especialy when we have to check existance of twenty or more key >> in array. Code would be be ligh

Re: [PHP-DEV] suggestion about ternary operator

2009-11-20 Thread Larry Garfield
On Friday 20 November 2009 11:12:29 pm Alban wrote: > This is not a big problem but if a solution exists, this would be so > cool ! Especialy when we have to check existance of twenty or more key in > array. Code would be be lighter and clear. I cannot comment on the rest of your post right now,

[PHP-DEV] suggestion about ternary operator

2009-11-20 Thread Alban
hi all, Since the new conditionnal operator ternary was introduced in php 5.3, I'm little confuse about it. The documentations says : Since PHP 5.3, it is possible to leave out the middle part of the ternary operator. Expression expr1 ?: expr3 returns expr1 if expr1 evaluates to TRUE, and ex

Re: [PHP-DEV] Intervals representation with brackets

2009-11-20 Thread mm w
Hello, Even if you are introducing a new syntax, your approach is wrong to get intersection and interval, I was not talkative but the samples I gave you expose several cases // This isn't bad, but it's not really what i want, and... what I wrote! ;-) so I guess you don't even understand what you

Re: [PHP-DEV] Intervals representation with brackets

2009-11-20 Thread Samuel ROZE
Hi, This isn't bad, but it's not really what i want, and... what I wrote! ;-) Samuel. 2009/11/20 mm w <0xcafef...@gmail.com>: > http://code.google.com/p/foundation-kit/source/browse/trunk/FKRange.php > http://code.google.com/p/foundation-kit/source/browse/trunk/FKIndexSet.php > > On Fri, Nov 20,

Re: [PHP-DEV] Intervals representation with brackets

2009-11-20 Thread Samuel ROZE
It's clear. ;-) Thanks. 2009/11/20 Rasmus Lerdorf : > Samuel ROZE wrote: >> Hello, >> >> I'm working on two classes, Interval and IntervalList which describe >> an interval and a list of intervals. These intervals are defined using >> the Interval class: >> >> > $interval = new Interval((int) $fro

Re: [PHP-DEV] Intervals representation with brackets

2009-11-20 Thread Samuel ROZE
> Are you suggesting new object operator? Short-syntax-array? Short-syntax-interval ! :-) > What exactly are you asking/informing/reporting/whatever? I'm just asking if, for you, brackets can represent intervals... -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit:

Re: [PHP-DEV] Intervals representation with brackets

2009-11-20 Thread Rasmus Lerdorf
Samuel ROZE wrote: > Hello, > > I'm working on two classes, Interval and IntervalList which describe > an interval and a list of intervals. These intervals are defined using > the Interval class: > > $interval = new Interval((int) $from, (int) $to); > ?> > > These intervals can be stored in a l

Re: [PHP-DEV] Intervals representation with brackets

2009-11-20 Thread mm w
http://code.google.com/p/foundation-kit/source/browse/trunk/FKRange.php http://code.google.com/p/foundation-kit/source/browse/trunk/FKIndexSet.php On Fri, Nov 20, 2009 at 1:56 PM, Samuel ROZE wrote: > Hello, > > I'm working on two classes, Interval and IntervalList which describe > an interval an

Re: [PHP-DEV] Intervals representation with brackets

2009-11-20 Thread Hannes Magnusson
On Fri, Nov 20, 2009 at 22:56, Samuel ROZE wrote: [...] > // A list of intervals > $list = [ $from_1, $to_1] + [$from_2, $to_2] + ... [$from_n, $to_n]; > $list_2 = [$from_1, $to_1] + ... + $interval_n; > ?> This made no sense to me. Are you suggesting new object operator? Short-syntax-array? Wh

[PHP-DEV] Intervals representation with brackets

2009-11-20 Thread Samuel ROZE
Hello, I'm working on two classes, Interval and IntervalList which describe an interval and a list of intervals. These intervals are defined using the Interval class: These intervals can be stored in a list of intervals, using IntervalList: add($interval_1); $list->add($interval_2); ?> Interv

Re: [PHP-DEV] SVN Account Request: ondercsn

2009-11-20 Thread Christopher Jones
nder coskun wrote: I have many projects about php ( not coding for an application or website; directly about php functions etc.) and would like to help to improve php. For example asterisk server functions. That's why i need an svn account to help developing of php This README should

[PHP-DEV] Re: [PHP-DOC] __autoload() and exceptions

2009-11-20 Thread Brandon Savage
On Nov 20, 2009, at 3:05 PM, Hannes Magnusson wrote: > On Fri, Nov 20, 2009 at 20:51, Brandon Savage > wrote: >> All, >> >> I was playing around today with the autoload functions and I discovered that >> in PHP 5.3, __autoload() can throw, and scripts can catch, exceptions. >> This is in direct

[PHP-DEV] Re: [PHP-DOC] __autoload() and exceptions

2009-11-20 Thread Hannes Magnusson
On Fri, Nov 20, 2009 at 20:51, Brandon Savage wrote: > All, > > I was playing around today with the autoload functions and I discovered that > in PHP 5.3, __autoload() can throw, and scripts can catch, exceptions. > This is in direct contradiction to the > documentation: http://php.net/manual/en/l

[PHP-DEV] SVN Account Request: ondercsn

2009-11-20 Thread önder coskun
I have many projects about php ( not coding for an application or website; directly about php functions etc.) and would like to help to improve php. For example asterisk server functions. That's why i need an svn account to help developing of php -- PHP Internals - PHP Runtime Development Mail

Re: [PHP-DEV] Re: clarification on maximum string sizes in PHP on 64 bit linux

2009-11-20 Thread jvlad
> The problem with the segfault in memcpy from bug 50207 was that the > pointer result->value.str.val is a 64 bit unsigned integer, and of > course result->value.str.len is a signed 32 bit integer. The value of you're right, len is declared as int and it's indeed 32bit under 64bit Linux. It must

Re: [PHP-DEV] Closures and $this

2009-11-20 Thread Michael Stillwell
On Thu, Nov 19, 2009 at 4:29 PM, Jelrik van Hal wrote: > Victor, I do wholeheartedly agree with you about the mess things will be > when allowing $this to refer to different things in different contexts of > calling the same closure (B, C and D): I think it'll prove very difficult to > keep track

Re: [PHP-DEV] Bug tracker cannot connect to database

2009-11-20 Thread Hannes Magnusson
Derick jumpstarted mysql on the server just now. -Hannes On Fri, Nov 20, 2009 at 09:17, Ronald Chmara wrote: > "WORKSFORME" > > Details? > > On Thu, Nov 19, 2009 at 11:38 PM, Edward Z. Yang wrote: >> I don't know if this is the right list to report to, but >> bugs.php.net is currently non-funct

Re: [PHP-DEV] Bug tracker cannot connect to database

2009-11-20 Thread Ronald Chmara
"WORKSFORME" Details? On Thu, Nov 19, 2009 at 11:38 PM, Edward Z. Yang wrote: > I don't know if this is the right list to report to, but > bugs.php.net is currently non-functional. > > Cheers, > Edward > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://