mirror of
https://github.com/php/php-src.git
synced 2026-04-19 22:11:12 +02:00
If there is a previous use of the new variable in the phi, we need to NULL out the use chain of the new source we're adding. Test case is reduced from an assertion failure in the Symfony Demo.
20 lines
421 B
PHP
20 lines
421 B
PHP
--TEST--
|
|
Check that phi use chains are correctly maintained when removing blocks
|
|
--FILE--
|
|
<?php
|
|
|
|
function test(array $adapters) {
|
|
foreach ($adapters as $adapter) {
|
|
if (\in_array('cli-server', ['cli', 'phpdbg'], true) && $adapter instanceof stdClass && !\filter_var('1', \FILTER_VALIDATE_BOOLEAN)) {
|
|
continue;
|
|
}
|
|
|
|
$adapters[] = $adapter;
|
|
}
|
|
}
|
|
|
|
?>
|
|
===DONE===
|
|
--EXPECT--
|
|
===DONE===
|