php-8.0.30-src/ext/opcache/tests/bug78341.phpt

22 lines
299 B
PHP

--TEST--
Bug #78341: Failure to detect smart branch in DFA pass
--FILE--
<?php
function test($a) {
// Just some dead code...
if (strpos("foo", "foo") !== 0) {
echo "Foo";
}
$x = $a === null;
if ($x) {
var_dump($x);
}
}
test(null);
?>
--EXPECT--
bool(true)