]> granicus.if.org Git - php/commitdiff
Fix build for --disable-signals
authorChristoph M. Becker <cmbecker69@gmx.de>
Mon, 29 Jul 2019 16:46:05 +0000 (18:46 +0200)
committerChristoph M. Becker <cmbecker69@gmx.de>
Mon, 29 Jul 2019 16:49:44 +0000 (18:49 +0200)
ext/opcache/ZendAccelerator.c

index 8efc340065cba65d344a1ff7928be5314fc73829..5a3a7863c1ce3c8d5cba285dd9f57ff58fa1425f 100644 (file)
@@ -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 {