Skip to content

Commit 6e7e52d

Browse files
committed
Fix SKIPIF jit test
JIT can be available but disabled, in which case the array offset 'jit' is still available.
1 parent cad1660 commit 6e7e52d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/opcache/tests/jit/bug80426.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ zend_test.replace_zend_execute_ex=1
99
opcache
1010
zend_test
1111
--SKIPIF--
12-
<?php if (!isset(opcache_get_status()["jit"])) die('skip: JIT is not available'); ?>
12+
<?php if ((opcache_get_status()['jit']['on'] ?? false) === false) die('skip: JIT is not available'); ?>
1313
--FILE--
1414
<?php
1515

0 commit comments

Comments
 (0)