回复: [PHP-DEV] Enable Zend Signals Handler By Default
| From: | Wei Dai | Date: | Fri, 06 Mar 2015 01:20:17 +0000 |
| Subject: | 回复: [PHP-DEV] Enable Zend Signals Handler By Default | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-84372@lists.php.net to get a copy of this message | ||
在 2015年3月5日 星期四,下午9:27,Xinchen Hui 写道:
Hi,
> Hey internal:
>
>
> There is also a problem we have been suffering from for a quite
> long time, that is signal raised at OOM/Timeout when execution is in a
> critical area will lead PHP crash or even more big troubles if it is
> in shared memory.
>
> You may still remember we disabled zend signal handlers before
> PHP-5.4 was released because it doesn't work well as mod_apache. which
> is described in #61083.
>
> Zend signal is a good way to fix the problem, thus I did some
> research then fixed zend signals(make it works with apache2handler),
> committed in
> https://github.com/php/php-src/commit/fd5a756ad44124ffa7e9a5810a31ff49e91708cf
>
> And no obviously performance affects in reallife app(benched with
> wordpress).
>
> Next, We may do some further optimizationes based on that.
>
> For now, I want to make zend signals handler enable by default
> (in configure) for PHP7, or maybe totally removed the
> --enable-zend-signals option? thus make zend_signal.c always be
> compiled and linked.
>
> Is there any concerns or objections on this?
I’m +1 on this, it sounds good and helpful.
Thank you for your work.
>
> thanks
>
> --
> Xinchen Hui
> @Laruence
> http://www.laruence.com/
>
>
>
--
Wei Dai
@demon