xref: /PHP-8.0/Zend/tests/bug80255.phpt (revision d3812ca4)
1--TEST--
2Bug #80255: Opcache bug (bad condition result) in 8.0.0rc1
3--FILE--
4<?php
5
6function test($a, $b, $c) {
7    do {
8        if ($a && !$b) {
9            break;
10        } else if ($b) {
11            echo "foo\n";
12        }
13        echo "bar\n";
14    } while ($c);
15    echo "baz\n";
16}
17
18test(true, true, false);
19
20?>
21--EXPECT--
22foo
23bar
24baz
25