mirror of
https://github.com/php/php-src.git
synced 2026-04-25 00:48:25 +02:00
17f8b9fb36
Remove invalid assertion: A block can have multiple switch frees, so if we don't do live range block splitting, it is not necessarily true that the free is located at the start of a block.
23 lines
408 B
PHP
23 lines
408 B
PHP
--TEST--
|
|
Bug #77215: CFG assertion failure on multiple finalizing switch frees in one block
|
|
--INI--
|
|
opcache.enable_cli=1
|
|
opcache.optimization_level=-1
|
|
--FILE--
|
|
<?php
|
|
|
|
function _crash($eValeur) {
|
|
switch ($eValeur["a"]) {
|
|
default:
|
|
switch($eValeur["a"]) {
|
|
default:
|
|
return 2;
|
|
}
|
|
}
|
|
}
|
|
|
|
var_dump(_crash(["a" => "b"]));
|
|
?>
|
|
--EXPECT--
|
|
int(2)
|