1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

Fix SKIPIF jit test

JIT can be available but disabled, in which case the array offset 'jit' is still
available.
This commit is contained in:
Ilija Tovilo
2023-10-04 15:05:41 +02:00
parent cad1660501
commit 6e7e52de19

View File

@@ -9,7 +9,7 @@ zend_test.replace_zend_execute_ex=1
opcache
zend_test
--SKIPIF--
<?php if (!isset(opcache_get_status()["jit"])) die('skip: JIT is not available'); ?>
<?php if ((opcache_get_status()['jit']['on'] ?? false) === false) die('skip: JIT is not available'); ?>
--FILE--
<?php