ru_php/ext/opcache/tests/bug78341.phpt

24 lines
322 B
PHP

--TEST--
Bug #78341: Failure to detect smart branch in DFA pass
--EXTENSIONS--
opcache
--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)