xref: /PHP-8.4/ext/opcache/tests/ssa_bug_007.phpt (revision e9f783fc)
1--TEST--
2Incorrect CFG/SSA construction for SWITCH with few identical successors
3--EXTENSIONS--
4opcache
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