php-src/Zend/tests/bug80255.phpt
Nikita Popov d3812ca41b Fixed bug #80255
This was a copy&paste mistake, target_block was used where
follow_block was intended. Also update copy&paste mistakes in
the comments.
2020-10-19 15:13:53 +02:00

25 lines
339 B
PHP

--TEST--
Bug #80255: Opcache bug (bad condition result) in 8.0.0rc1
--FILE--
<?php
function test($a, $b, $c) {
do {
if ($a && !$b) {
break;
} else if ($b) {
echo "foo\n";
}
echo "bar\n";
} while ($c);
echo "baz\n";
}
test(true, true, false);
?>
--EXPECT--
foo
bar
baz