php-src/Zend/tests/replace_pred_pi_node.phpt
Nikita Popov 53df29bc29 Drop pi nodes for both old/new pred in replace_predecessor
We also need to drop pi nodes for new_pred here, as the pi node
restriction for new_pred is not necessarily true for control
coming from old_pred as well.

Fixes oss-fuzz #40782.
2021-11-08 14:56:42 +01:00

19 lines
285 B
PHP

--TEST--
Handling of pi nodes when replacing a predecessor
--FILE--
<?php
function test(bool $a, bool $b) {
$byte = '';
if ($a && $byte > 0 && $b) {}
unknown($byte);
}
function test2() {
foreach (0 as $v) {
$v ??= 0;
}
}
?>
===DONE===
--EXPECT--
===DONE===