summaryrefslogtreecommitdiff
path: root/ext/opcache/tests/ssa_bug_007.phpt
blob: e5237687b20771d6e4a39f16990f8a38012cfc2d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
--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