Commit b70e95de89a for php.net
commit b70e95de89a8d68df9a862f2c376792bd776fda7
Author: Ilija Tovilo <ilija.tovilo@me.com>
Date: Sat Jul 25 11:05:14 2026 +0200
[skip ci] Fix warning in tests when JIT is disabled at compile time
diff --git a/ext/opcache/tests/jit/gh14267_001.phpt b/ext/opcache/tests/jit/gh14267_001.phpt
index 2e23016f899..67192378571 100644
--- a/ext/opcache/tests/jit/gh14267_001.phpt
+++ b/ext/opcache/tests/jit/gh14267_001.phpt
@@ -10,7 +10,7 @@
--FILE--
<?php
// Skip when JIT was completely disabled at runtime.
-if (($status = opcache_get_status()) === false || $status['jit']['enabled']) {
+if (($status = opcache_get_status()) === false || ($status['jit']['enabled'] ?? true)) {
ini_set('opcache.jit', 'tracing');
}
?>
diff --git a/ext/opcache/tests/jit/gh16393.phpt b/ext/opcache/tests/jit/gh16393.phpt
index e90fb53e21a..23b79b8fd7d 100644
--- a/ext/opcache/tests/jit/gh16393.phpt
+++ b/ext/opcache/tests/jit/gh16393.phpt
@@ -8,7 +8,7 @@
--FILE--
<?php
// Skip when JIT was completely disabled at runtime.
-if (($status = opcache_get_status()) === false || $status['jit']['enabled']) {
+if (($status = opcache_get_status()) === false || ($status['jit']['enabled'] ?? true)) {
ini_set('opcache.jit', 'tracing');
}
class Test {