summaryrefslogtreecommitdiff
path: root/Zend/tests/bug80255.phpt
blob: d3fc6b7abe29e8018a40fbe5c499c94541666aa8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
--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