]> granicus.if.org Git - php/commitdiff
JIT disabled build fix.
authorDavid Carlier <devnexen@gmail.com>
Mon, 14 Dec 2020 18:42:52 +0000 (18:42 +0000)
committerNikita Popov <nikita.ppv@gmail.com>
Tue, 15 Dec 2020 08:51:16 +0000 (09:51 +0100)
Closes GH-6514.

ext/opcache/ZendAccelerator.c

index 5c7f31b4879b32644ca784071da8295576f55822..19fc938228d4d563bc324a2cd581b591f37e5319 100644 (file)
@@ -3058,8 +3058,10 @@ 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 {
+#ifdef HAVE_JIT
                JIT_G(enabled) = 0;
                JIT_G(on) = 0;
+#endif
                accel_shared_globals = calloc(1, sizeof(zend_accel_shared_globals));
 
                /* Init auto-global strings */