Re: [PHP-DEV] #60038 SIGALRM cause segfault in php_error_cb

2011-10-12 Thread Ilia Alshanetsky
Seems like a fine solution, performance loss would occur only when
error happens...

On Tue, Oct 11, 2011 at 5:30 AM, Laruence larue...@php.net wrote:
 Hi:
    I filed a bug about SIGALRM(or SIGPROF) has chance to cause
 segfault in php_error_cb. https://bugs.php.net/bug.php?id=60038

    do you think this is worth fixing (in 5.4 trunk)? (as zend_signal
 was introduced, and this fix will cost litte perf).

 thanks

 --
 Laruence  Xinchen Hui
 http://www.laruence.com/

 --
 PHP Internals - PHP Runtime Development Mailing List
 To unsubscribe, visit: http://www.php.net/unsub.php



--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP-DEV] #60038 SIGALRM cause segfault in php_error_cb

2011-10-12 Thread Stas Malyshev

Hi!

On 10/12/11 7:50 AM, Ilia Alshanetsky wrote:

Seems like a fine solution, performance loss would occur only when
error happens...


Note that on 99% of real PHP code, dozens of errors may happen due to 
multitude of notices and E_STRICTs that we have now and we have no means 
to disable until the very last moment before printing them. If each of 
them would cost two system calls, we may have a serious performance problem.

--
Stanislav Malyshev, Software Architect
SugarCRM: http://www.sugarcrm.com/
(408)454-6900 ext. 227

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP-DEV] #60038 SIGALRM cause segfault in php_error_cb

2011-10-12 Thread Xinchen Hui
Hi:
If send signal enabled, no system will be called.

Thkans

Sent from my iPhone

在 2011-10-12,22:59,Stas Malyshev smalys...@sugarcrm.com 写道:

 Hi!

 On 10/12/11 7:50 AM, Ilia Alshanetsky wrote:
 Seems like a fine solution, performance loss would occur only when
 error happens...

 Note that on 99% of real PHP code, dozens of errors may happen due to 
 multitude of notices and E_STRICTs that we have now and we have no means to 
 disable until the very last moment before printing them. If each of them 
 would cost two system calls, we may have a serious performance problem.
 --
 Stanislav Malyshev, Software Architect
 SugarCRM: http://www.sugarcrm.com/
 (408)454-6900 ext. 227

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP-DEV] #60038 SIGALRM cause segfault in php_error_cb

2011-10-12 Thread Xinchen Hui
s,send,zend,

Sent from my iPhone

在 2011-10-13,8:16,Xinchen Hui larue...@gmail.com 写道:

 Hi:
 If send signal enabled, no system will be called.

 Thkans

 Sent from my iPhone

 在 2011-10-12,22:59,Stas Malyshev smalys...@sugarcrm.com 写道:

 Hi!

 On 10/12/11 7:50 AM, Ilia Alshanetsky wrote:
 Seems like a fine solution, performance loss would occur only when
 error happens...

 Note that on 99% of real PHP code, dozens of errors may happen due to 
 multitude of notices and E_STRICTs that we have now and we have no means to 
 disable until the very last moment before printing them. If each of them 
 would cost two system calls, we may have a serious performance problem.
 --
 Stanislav Malyshev, Software Architect
 SugarCRM: http://www.sugarcrm.com/
 (408)454-6900 ext. 227

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php