diff --git a/ext/opcache/jit/zend_jit.c b/ext/opcache/jit/zend_jit.c index 75bc37cdf72..b3a5b5735c6 100644 --- a/ext/opcache/jit/zend_jit.c +++ b/ext/opcache/jit/zend_jit.c @@ -3448,7 +3448,9 @@ ZEND_EXT_API int zend_jit_check_support(void) } if (zend_execute_ex != execute_ex) { - if (strcmp(sapi_module.name, "phpdbg") != 0) { + if (zend_dtrace_enabled) { + zend_error(E_WARNING, "JIT is incompatible with DTrace. JIT disabled."); + } else if (strcmp(sapi_module.name, "phpdbg") != 0) { zend_error(E_WARNING, "JIT is incompatible with third party extensions that override zend_execute_ex(). JIT disabled."); } JIT_G(enabled) = 0;