xref: /PHP-8.1/ext/opcache/tests/jit/cmp_007.phpt (revision a743fd76)
1--TEST--
2JIT CMP: 007 Wrong comparison skip
3--INI--
4opcache.enable=1
5opcache.enable_cli=1
6opcache.file_update_protection=0
7opcache.jit_buffer_size=1M
8opcache.protect_memory=1
9--FILE--
10<?php
11function test($a) {
12    var_dump(1 - $a != 0);
13}
14for ($i = 0; $i < 5; $i++) {
15	test(null);
16}
17?>
18--EXPECT--
19bool(true)
20bool(true)
21bool(true)
22bool(true)
23bool(true)
24