Skip to content

Commit 2da4703

Browse files
Revert "Allow JIT disabled warning when unavailable"
This reverts commit fb8dd26.
1 parent 825d2d9 commit 2da4703

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

ext/opcache/tests/jit/gh14267_001.phpt

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,14 @@ opcache.jit=off
77
opcache.jit_buffer_size=32M
88
--EXTENSIONS--
99
opcache
10+
--SKIPIF--
11+
<?php
12+
if (!(opcache_get_status()['jit']['enabled'] ?? false)) die('skip JIT is not available');
13+
?>
1014
--FILE--
1115
<?php
1216
ini_set('opcache.jit', 'tracing');
1317
?>
1418
===DONE===
15-
--EXPECTREGEX--
16-
^(?:Warning: Cannot change opcache\.jit setting at run-time \(JIT is disabled\) in .+ on line 2
17-
)?===DONE===$
19+
--EXPECT--
20+
===DONE===

0 commit comments

Comments
 (0)