1
0
mirror of https://github.com/php/php-src.git synced 2026-04-19 22:11:12 +02:00
Files
archived-php-src/ext/opcache/tests/ssa_bug_007.phpt
2020-02-03 22:52:20 +01:00

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