From 717746114141b9c7b97d9ff207ed135069e722df Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Tue, 10 Oct 2023 17:11:01 +0200 Subject: [PATCH] Report warning if JIT cannot be enabled Closes GH-12404 --- NEWS | 3 ++- ext/opcache/ZendAccelerator.c | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index 9ea10ad8ebe..b56c9d8fb55 100644 --- a/NEWS +++ b/NEWS @@ -2,7 +2,8 @@ PHP NEWS ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| ?? ??? ????, PHP 8.1.26 - +- Opcache: + . Added warning when JIT cannot be enabled. (danog) 26 Oct 2023, PHP 8.1.25 diff --git a/ext/opcache/ZendAccelerator.c b/ext/opcache/ZendAccelerator.c index 429eadf023e..93afd8e415d 100644 --- a/ext/opcache/ZendAccelerator.c +++ b/ext/opcache/ZendAccelerator.c @@ -3270,6 +3270,7 @@ static zend_result accel_post_startup(void) || zend_jit_startup(ZSMMG(reserved), jit_size, reattached) != SUCCESS) { JIT_G(enabled) = 0; JIT_G(on) = 0; + zend_accel_error(ACCEL_LOG_WARNING, "Could not enable JIT!"); } } #endif