]> granicus.if.org Git - php/commitdiff
Fix build without jit
authorNikita Popov <nikita.ppv@gmail.com>
Tue, 16 Jul 2019 08:26:25 +0000 (10:26 +0200)
committerNikita Popov <nikita.ppv@gmail.com>
Tue, 16 Jul 2019 08:26:25 +0000 (10:26 +0200)
ext/opcache/zend_accelerator_module.c

index e390a2fe6dcd8714ffb4eb807aac1cf2f84bdfe7..936687760add1cf0773c91659ae07bd2e3cf6eee 100644 (file)
@@ -792,9 +792,11 @@ static ZEND_FUNCTION(opcache_get_configuration)
        add_assoc_bool(&directives,   "opcache.huge_code_pages",         ZCG(accel_directives).huge_code_pages);
 #endif
        add_assoc_string(&directives, "opcache.preload", STRING_NOT_NULL(ZCG(accel_directives).preload));
+#ifdef HAVE_JIT
        add_assoc_long(&directives,   "opcache.jit", ZCG(accel_directives).jit);
        add_assoc_long(&directives,   "opcache.jit_buffer_size", ZCG(accel_directives).jit_buffer_size);
        add_assoc_long(&directives,   "opcache.jit_debug", ZCG(accel_directives).jit_debug);
+#endif
 
        add_assoc_zval(return_value, "directives", &directives);