From: Christoph M. Becker Date: Mon, 29 Jul 2019 16:46:05 +0000 (+0200) Subject: Fix build for --disable-signals X-Git-Tag: php-7.4.0beta2~24 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3429370d69d8f2c7e244214ce11570bcf6fb2088;p=php Fix build for --disable-signals --- 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 {