xref: /php-src/ext/opcache/tests/jit/noval_001.phpt (revision c16ad918)
1--TEST--
2JIT NOVAL: 001 (bug in zend_jit_compute_false_dependencies())
3--INI--
4opcache.enable=1
5opcache.enable_cli=1
6opcache.file_update_protection=0
7opcache.protect_memory=1
8;opcache.jit_debug=257
9--EXTENSIONS--
10opcache
11--FILE--
12<?php
13class Foo {
14    const X = false;
15
16    static function bar() {
17        $count = 0;
18        if (self::X) {
19            $count = intval(9223372036854775807);
20        }
21        if (self::X) {
22           $count = 2;
23        }
24        if ($count != 0) {
25            return "bug";
26        }
27        return "ok";
28    }
29}
30var_dump(Foo::bar());
31?>
32--EXPECT--
33string(2) "ok"
34
35