1--TEST--
2Incorrect constant propagation on BOOL in pass 1
3--EXTENSIONS--
4opcache
5--FILE--
6<?php
7function test($foo) {
8    $bar = 0;
9    if ($bar === 1 && $foo && PHP_SAPI !== 'cgi') {
10        echo "bar\n";
11    }
12    echo "foo\n";
13}
14test(1);
15?>
16--EXPECT--
17foo
18