# Enable Zend Signals by Default

- Thread: https://externals.io/message/94161
- Original archive: https://news-web.php.net/php.internals/94161
- Started by Dmitry Stogov on 2016-06-20T20:25:26+00:00
- Messages: 3
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · RFCs at https://externals.io/rfc.md · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #94161 — Dmitry Stogov — 2016-06-20T20:25:26+00:00

URL: https://externals.io/message/94161#94161

Hi,


I'm going to enable Zend-Signals subsystem by default.

With "Zend signals" enabled, we would have safe termination signal handling in opcache, that would prevent staying SHM in inconsistent state, in cost of few additional checks on each opcache SHM update (performance impact is negligible).


Zend Signals were originally designed to safely handle execution timeout and other termination signals.

However, termination signals were never handled by OPcache (only by APC).

Also, introduction of "safe execution timeout" handling made a lot of checks in Zend Engine redundant.

Today, I already removed useless checks in ZE, added other checks in OPcahce, and fixed few compatibility problems.

This, actually, didn't change anything with "zend signals" disabled.


https://github.com/php/php-src/pull/1951

So, I propose to switch zend-signals on, and revert back if it makes problems to 7.1 release process.
Any objections?


Thanks. Dmitry.

---

## #94167 — Rasmus Lerdorf — 2016-06-21T01:02:45+00:00

URL: https://externals.io/message/94161#94167 · In reply to: #94161

> So, I propose to switch zend-signals on, and revert back if it makes 
> problems to 7.1 release process.
> Any objections?

No objections here. I have been hitting annoying segfaults in 7.0 that 
will likely be helped by this.

-Rasmus

---

## #94188 — Xinchen Hui — 2016-06-22T03:59:45+00:00

URL: https://externals.io/message/94161#94188 · In reply to: #94167

Hey:



> 
>
> So, I propose to switch zend-signals on, and revert back if it makes
> problems to 7.1 release process.
> Any objections?
>
>
> No objections here. I have been hitting annoying segfaults in 7.0 that
> will likely be helped by this.
>
No objections here neither, I already tried enable it in 7.0 :)

thanks


>
> -Rasmus
>



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