1
0
mirror of https://github.com/php/php-src.git synced 2026-03-26 01:02:25 +01:00
Files
archived-php-src/ext/opcache/tests/bug78341.phpt
Nikita Popov 8e63bb5e46 Fixed bug #78341
The smart branch logic assumed b->start refers to the old offsets,
while b->start was already adjusted to the new offsets at this
point. Delay the change until later.
2019-07-29 13:02:01 +02:00

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)