mirror of
https://github.com/php/php-src.git
synced 2024-09-22 02:17:32 +00:00
53df29bc29
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.
19 lines
285 B
PHP
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===
|