]> granicus.if.org Git - php/commitdiff
Fixed bug #80506 (Immediate SIGSEGV upon ini_set("opcache.jit_debug", 1))
authorDmitry Stogov <dmitry@zend.com>
Mon, 14 Dec 2020 12:26:11 +0000 (15:26 +0300)
committerDmitry Stogov <dmitry@zend.com>
Mon, 14 Dec 2020 12:26:11 +0000 (15:26 +0300)
ext/opcache/ZendAccelerator.c

index 4fbc60bd74d6ecae7e05e886cc16b42111b9e34b..5c7f31b4879b32644ca784071da8295576f55822 100644 (file)
@@ -3058,6 +3058,8 @@ static zend_result accel_post_startup(void)
                zend_accel_error(ACCEL_LOG_FATAL, "opcache.file_cache_only is set without a proper setting of opcache.file_cache");
                return SUCCESS;
        } else {
+               JIT_G(enabled) = 0;
+               JIT_G(on) = 0;
                accel_shared_globals = calloc(1, sizeof(zend_accel_shared_globals));
 
                /* Init auto-global strings */