Re: [PHP-DEV] Closures and $this

2009-11-17 Thread Mathieu Suen
Christian Seiler a écrit : Hi, since a few months have passed since the last discussion on this topic and perhaps people had time to gather some experience with the current closure implementation in PHP 5.3 I'd like to restart the debate on $this in closures and object extension. Foreword: The

Re: [PHP-DEV] Re: Stuck debugging a PHP6 string--unicode--string conversion problem on Solaris (SPARC)

2009-11-17 Thread Arvind Srinivasan
thanks. i've updated the patch in the bug report to use WORDS_BIGENDIAN. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] [PATCH] - Improving multi-threaded scalability by using emalloc/efree/estrdup instead of malloc/free/strdup in virtual_cwd APIs

2009-11-17 Thread Arvind Srinivasan
Using malloc/free in a multi-threaded process limits its scalability because of the process-wide lock inside malloc/free. The scalability of the PHP engine in a multi-threaded process can be improved by reducing the use of malloc/free/strdup and instead using emalloc/efree/estrdup wherever

Re: [PHP-DEV] Closures and $this

2009-11-17 Thread Chris Stockton
Hello, On Tue, Nov 17, 2009 at 2:59 AM, Mathieu Suen mathieu.s...@easyflirt.com wrote: Christian Seiler a écrit : Hi, since a few months have passed since the last discussion on this topic and perhaps people had time to gather some experience with the current closure implementation in PHP

Re: [PHP-DEV] PHP6's future

2009-11-17 Thread Chris Stockton
Hello, On Mon, Nov 16, 2009 at 6:13 PM, Kalle Sommer Nielsen ka...@php.net wrote: But what is every ones input on the matter of attempting to boost PHP6's development? I'm willing to give my part in whatever I can to help getting up on the feet to get this ball rolling. I think that some more

Re: [PHP-DEV] Closures and $this

2009-11-17 Thread Mathieu Suen
Chris Stockton a écrit : Hello, On Tue, Nov 17, 2009 at 2:59 AM, Mathieu Suen mathieu.s...@easyflirt.com wrote: Christian Seiler a écrit : Hi, since a few months have passed since the last discussion on this topic and perhaps people had time to gather some experience with the current closure

[PHP-DEV] Ability to intercept errors even if set_error_handler has been called

2009-11-17 Thread Mikko Koppanen
Hello, In monitoring type extensions such as Xdebug, APM etc it is common to override zend_error_cb with a custom callback to intercept errors. This however has a drawback: if user calls set_error_handler the zend_error_cb does not get called at all for errors that can be handled in userspace.

[PHP-DEV] Re: PHP6's future

2009-11-17 Thread Greg Beaver
Kalle Sommer Nielsen wrote: But what is every ones input on the matter of attempting to boost PHP6's development? I'm willing to give my part in whatever I can to help getting up on the feet to get this ball rolling. Hi, As someone who has successfully ported a rather complex extension

Re: [PHP-DEV] Closures and $this

2009-11-17 Thread Victor Bolshov
Hi. Personally, I beleive that (A) approach is the best: bind $this to the object scope at creation and never change it, issue error when $this is used where not available. It also seems to me like this way it could be implemented with better performance, am I right? Dynamically changing $this