php-8.0.30-src/ext/opcache/tests/ssa_bug_007.phpt

25 lines
527 B
PHP

--TEST--
Incorrect CFG/SSA construction for SWITCH with few identical successors
--SKIPIF--
<?php require_once('skipif.inc'); ?>
--FILE--
<?php
function render($properties) {
foreach ($properties as $key => $value) {
switch ($key) {
case 'Trapped':
if ($value == null) {
$docInfo->$key = 1;
}
case 'CreationDate':
case 'ModDate':
$docInfo->$key = 2;
break;
}
}
}
?>
OK
--EXPECT--
OK