From: Nikita Popov Date: Tue, 16 Jul 2019 08:26:25 +0000 (+0200) Subject: Fix build without jit X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=760308cbff05914efd20cf1ad4d39f5b4cb3c24e;p=php Fix build without jit --- diff --git a/ext/opcache/zend_accelerator_module.c b/ext/opcache/zend_accelerator_module.c index e390a2fe6d..936687760a 100644 --- a/ext/opcache/zend_accelerator_module.c +++ b/ext/opcache/zend_accelerator_module.c @@ -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);