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