summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph M. Becker <cmbecker69@gmx.de>2019-07-29 18:46:05 +0200
committerChristoph M. Becker <cmbecker69@gmx.de>2019-07-29 18:49:44 +0200
commit3429370d69d8f2c7e244214ce11570bcf6fb2088 (patch)
treec51d5d85efc00a0adbbcc41b280b3da6f4f55175
parent536c91c535d5113aabd2a65b2021a70dc1841d89 (diff)
downloadphp-git-3429370d69d8f2c7e244214ce11570bcf6fb2088.tar.gz
Fix build for --disable-signals
-rw-r--r--ext/opcache/ZendAccelerator.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/opcache/ZendAccelerator.c b/ext/opcache/ZendAccelerator.c
index 8efc340065..5a3a7863c1 100644
--- a/ext/opcache/ZendAccelerator.c
+++ b/ext/opcache/ZendAccelerator.c
@@ -4542,9 +4542,11 @@ static int accel_finish_startup(void)
orig_report_memleaks = PG(report_memleaks);
PG(report_memleaks) = 0;
+#ifdef ZEND_SIGNALS
/* We may not have registered signal handlers due to SIGG(reset)=0, so
* also disable the check that they are registered. */
SIGG(check) = 0;
+#endif
php_request_shutdown(NULL); /* calls zend_shared_alloc_unlock(); */
PG(report_memleaks) = orig_report_memleaks;
} else {