xref: /PHP-7.4/ext/opcache/tests/ssa_bug_007.phpt (revision 75bc3446)
1--TEST--
2Incorrect CFG/SSA construction for SWITCH with few identical successors
3--SKIPIF--
4<?php require_once('skipif.inc'); ?>
5--FILE--
6<?php
7function render($properties) {
8	foreach ($properties as $key => $value) {
9		switch ($key) {
10			case 'Trapped':
11				if ($value == null) {
12					$docInfo->$key = 1;
13				}
14			case 'CreationDate':
15			case 'ModDate':
16				$docInfo->$key = 2;
17				break;
18		}
19	}
20}
21?>
22OK
23--EXPECT--
24OK
25