Skip to content

Commit b70e95d

Browse files
committed
[skip ci] Fix warning in tests when JIT is disabled at compile time
1 parent de5a582 commit b70e95d

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

ext/opcache/tests/jit/gh14267_001.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ opcache
1010
--FILE--
1111
<?php
1212
// Skip when JIT was completely disabled at runtime.
13-
if (($status = opcache_get_status()) === false || $status['jit']['enabled']) {
13+
if (($status = opcache_get_status()) === false || ($status['jit']['enabled'] ?? true)) {
1414
ini_set('opcache.jit', 'tracing');
1515
}
1616
?>

ext/opcache/tests/jit/gh16393.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ opcache.jit_buffer_size=64M
88
--FILE--
99
<?php
1010
// Skip when JIT was completely disabled at runtime.
11-
if (($status = opcache_get_status()) === false || $status['jit']['enabled']) {
11+
if (($status = opcache_get_status()) === false || ($status['jit']['enabled'] ?? true)) {
1212
ini_set('opcache.jit', 'tracing');
1313
}
1414
class Test {

0 commit comments

Comments
 (0)