mirror of
https://github.com/php/php-src.git
synced 2024-12-18 06:21:41 +08:00
bbd3f714d7
If we optimize the FREE away, we should switch to constructing a normal live range, rather than a split live range. Fixes oss-fuzz #39548.
18 lines
247 B
PHP
18 lines
247 B
PHP
--TEST--
|
|
Live range construction should not break if colesce assign branch is optimized away
|
|
--FILE--
|
|
<?php
|
|
function test() {
|
|
$a[X] ??= Y;
|
|
var_dump($a);
|
|
}
|
|
define('X', 1);
|
|
define('Y', 2);
|
|
test();
|
|
?>
|
|
--EXPECT--
|
|
array(1) {
|
|
[1]=>
|
|
int(2)
|
|
}
|