summaryrefslogtreecommitdiff
path: root/ext/opcache/tests/ssa_bug_007.phpt
blob: 344a05665d0aaec68dff05c0d824a3ef51cbf4c9 (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