Re: [PHP-DEV] substr/array_slice in []

2007-10-08 Thread Alexey Zakhlestin
On 10/9/07, Antony Dovgal <[EMAIL PROTECTED]> wrote: > On 09.10.2007 06:32, Andrei Zmievski wrote: > > I will use an example: > > > > $foo = substr($bar, 0, 5) . "-" . substr($bar, 5); > > > > or > > > > $foo = $bar[:5] . "-" . $bar[5:]; > > > > I would argue that the second line is hardly more cry

Re: [PHP-DEV] substr/array_slice in []

2007-10-08 Thread Antony Dovgal
On 09.10.2007 06:32, Andrei Zmievski wrote: > I will use an example: > > $foo = substr($bar, 0, 5) . "-" . substr($bar, 5); > > or > > $foo = $bar[:5] . "-" . $bar[5:]; > > I would argue that the second line is hardly more cryptic than the > first one. How come? It looks like you're reading

Re: [PHP-DEV] substr/array_slice in []

2007-10-08 Thread Andrei Zmievski
I will use an example: $foo = substr($bar, 0, 5) . "-" . substr($bar, 5); or $foo = $bar[:5] . "-" . $bar[5:]; I would argue that the second line is hardly more cryptic than the first one. And if we were concerned that concerned about duplicate functionality, we probably wouldn't have Simp

Re: [PHP-DEV] substr/array_slice in []

2007-10-08 Thread Andrei Zmievski
So what? Just because other languages implemented a good idea first does not mean that it is verboten to us. PHP is result of years of evolution (and yes, Terry, it's also a ball of nails) and stealing ideas is one way to inject fresh genes into it. -Andrei On Oct 6, 2007, at 11:09 AM, Mar

Re: [PHP-DEV] Reference cycle collector patch

2007-10-08 Thread David Wang
On 10/8/07, Alexey Zakhlestin <[EMAIL PROTECTED]> wrote: > by the way, 33487 is not really a bug if it is stated this way. > the proper bug description for 33487 would be: > "there is no mechanism in zend_object_storage to free unused memory > during script execution" Yeah, it fixes the issue in t

Re: [PHP-DEV] Reference cycle collector patch

2007-10-08 Thread Alexey Zakhlestin
On 10/8/07, Tony Bibbs <[EMAIL PROTECTED]> wrote: > For the untrained eye, would this then fix these bugs? > > http://bugs.php.net/bug.php?id=33595 yes > http://bugs.php.net/bug.php?id=33487 no by the way, 33487 is not really a bug if it is stated this way. the proper bug description for 33487 wo

Re: [PHP-DEV] Reference cycle collector patch

2007-10-08 Thread Tony Bibbs
For the untrained eye, would this then fix these bugs? http://bugs.php.net/bug.php?id=33595 http://bugs.php.net/bug.php?id=33487 --Tony - Original Message From: David Wang <[EMAIL PROTECTED]> To: internals@lists.php.net Sent: Monday, October 8, 2007 2:12:31 AM Subject: [PHP-DEV] Referen

RE: [PHP-DEV] Reference cycle collector patch

2007-10-08 Thread Andi Gutmans
Thanks David. We'll start testing the patch in our labs right after we're done with the Zend/PHP conference (early next week). Andi > -Original Message- > From: David Wang [mailto:[EMAIL PROTECTED] > Sent: Monday, October 08, 2007 12:13 AM > To: internals@lists.php.net > Subject: [PHP-D

[PHP-DEV] PHP 6 Bug Summary Report

2007-10-08 Thread internals
PHP 6 Bug Database summary - http://bugs.php.net Num Status Summary (60 total including feature requests) ===[*General Issues]== 26771 Suspended register_tick_funtions crash under threaded webservers ===

[PHP-DEV] PHP 4 Bug Summary Report

2007-10-08 Thread internals
PHP 4 Bug Database summary - http://bugs.php.net Num Status Summary (626 total including feature requests) ===[*Programming Data Structures]= 40496 Assigned Test bug35239.phpt still fails (works in PHP 5) =

Re: [PHP-DEV] Reference cycle collector patch

2007-10-08 Thread Cristian Rodriguez
2007/10/8, David Wang <[EMAIL PROTECTED]>: > Hey all, > > Now that macros for manipulating refcount and is_ref have been implemented, > I'm ready to submit patches for the GC. I know you all have been waiting for > this for a long time ☺. Good, I will test you patches as soon I have time to. >

[PHP-DEV] Reference cycle collector patch

2007-10-08 Thread David Wang
Hey all, Now that macros for manipulating refcount and is_ref have been implemented, I’m ready to submit patches for the GC. I know you all have been waiting for this for a long time ☺. I have made two sets of patches, one for HEAD and one for PHP_5_3 (note that I had to rearrange the order of