Commit 3ccde25486a for php
commit 3ccde25486a9d81c3f6f2c6993a6f5f5308c3be6
Author: ndossche <7771979+ndossche@users.noreply.github.com>
Date: Sun Nov 1 14:02:27 2026 +0100
Fix macOS nightly failure
diff --git a/ext/opcache/tests/jit/preload_restart_function_jit.phpt b/ext/opcache/tests/jit/preload_restart_function_jit.phpt
index 5571b52dfc2..ac8718d7d20 100644
--- a/ext/opcache/tests/jit/preload_restart_function_jit.phpt
+++ b/ext/opcache/tests/jit/preload_restart_function_jit.phpt
@@ -6,6 +6,7 @@
<?php
if (PHP_OS_FAMILY == 'Windows') die('skip Preloading is not supported on Windows');
if (ini_get('opcache.jit') === false) die('skip PHP is compiled without JIT');
+if (!(opcache_get_status()['jit']['on'] ?? false)) die('skip JIT is not available');
?>
--INI--
opcache.enable=1
diff --git a/ext/opcache/tests/jit/preload_restart_hot_counters.phpt b/ext/opcache/tests/jit/preload_restart_hot_counters.phpt
index 8f6af56b167..3a2f625eedd 100644
--- a/ext/opcache/tests/jit/preload_restart_hot_counters.phpt
+++ b/ext/opcache/tests/jit/preload_restart_hot_counters.phpt
@@ -6,6 +6,7 @@
<?php
if (PHP_OS_FAMILY == 'Windows') die('skip Preloading is not supported on Windows');
if (ini_get('opcache.jit') === false) die('skip PHP is compiled without JIT');
+if (!(opcache_get_status()['jit']['on'] ?? false)) die('skip JIT is not available');
?>
--INI--
opcache.enable=1