xref: /PHP-8.4/ext/opcache/tests/bug78341.phpt (revision e9f783fc)
1--TEST--
2Bug #78341: Failure to detect smart branch in DFA pass
3--EXTENSIONS--
4opcache
5--FILE--
6<?php
7
8function test($a) {
9    // Just some dead code...
10    if (strpos("foo", "foo") !== 0) {
11        echo "Foo";
12    }
13
14    $x = $a === null;
15    if ($x) {
16        var_dump($x);
17    }
18}
19test(null);
20
21?>
22--EXPECT--
23bool(true)
24