mirror of
https://github.com/php/php-src.git
synced 2024-12-18 06:21:41 +08:00
d3812ca41b
This was a copy&paste mistake, target_block was used where follow_block was intended. Also update copy&paste mistakes in the comments.
25 lines
339 B
PHP
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
|