1--TEST--
2Check that phi use chains are correctly maintained when removing blocks
3--EXTENSIONS--
4opcache
5--FILE--
6<?php
7
8function test(array $adapters) {
9    foreach ($adapters as $adapter) {
10        if (\in_array('cli-server', ['cli', 'phpdbg'], true) && $adapter instanceof stdClass && !\filter_var('1', \FILTER_VALIDATE_BOOLEAN)) {
11            continue;
12        }
13
14        $adapters[] = $adapter;
15    }
16}
17
18?>
19===DONE===
20--EXPECT--
21===DONE===
22