summaryrefslogtreecommitdiff
path: root/ext/opcache/tests/switch_with_coinciding_targets.phpt
blob: 1dd75e76b09a54090e2a6dab310bee1636a70b5f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
--TEST--
Switch where all targets, including default, coincide
--FILE--
<?php

$foo = 42.0;
$bar = true;

switch ($foo) {
default:
case 0: case 1: case 2: case 3:
    if ($bar) {
        echo "true\n";
    } else {
        echo "false\n";
    }
}

?>
--EXPECT--
true