summaryrefslogtreecommitdiff
path: root/ext/opcache/tests/ssa_bug_007.phpt
blob: 9eab31cf898ed9575dbd2c50f4567e970bcc1697 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--TEST--
Incorrect CFG/SSA construction for SWITCH with few identical successors
--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