summaryrefslogtreecommitdiff
path: root/sapi/embed
diff options
context:
space:
mode:
authorJoe Watkins <krakjoe@php.net>2015-09-01 09:34:54 +0100
committerJoe Watkins <krakjoe@php.net>2015-09-01 09:34:54 +0100
commit85a511d2c1b7d7489630d7e2d1112bddd4e20203 (patch)
tree32838ff5c5b97c69aff7d05e4c4fab339ea05502 /sapi/embed
parent66770f9c37e3821582b02f77867bf09141e59a51 (diff)
downloadphp-git-85a511d2c1b7d7489630d7e2d1112bddd4e20203.tar.gz
fix zend signal and tsrm compatzend-signal-zts
Diffstat (limited to 'sapi/embed')
-rw-r--r--sapi/embed/php_embed.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sapi/embed/php_embed.c b/sapi/embed/php_embed.c
index 4e50133dd4..70cc2f1ba3 100644
--- a/sapi/embed/php_embed.c
+++ b/sapi/embed/php_embed.c
@@ -177,6 +177,10 @@ EMBED_SAPI_API int php_embed_init(int argc, char **argv)
ZEND_TSRMLS_CACHE_UPDATE();
#endif
+#ifdef ZEND_SIGNALS
+ zend_signal_startup();
+#endif
+
sapi_startup(&php_embed_module);
#ifdef PHP_WIN32