summaryrefslogtreecommitdiff
path: root/ext/opcache/tests/ssa_bug_010.phpt
blob: 99a1594121920c51efa6d2437e410a30fd14114e (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
25
26
27
28
29
30
31
32
33
34
--TEST--
Wrong assertion
--SKIPIF--
<?php require_once('skipif.inc'); ?>
--FILE--
<?php
function foo($parts, $a, $b) {
  $name = $a;
  $level = 1;
  foreach ($parts as $part) {
    if ($level == 1) {
      $level = 4;
      $found = true;
      switch ($part) {
        case 'general':
          break;
        case 'bg':
          $name = $b;
          break;
      }
      if ($found) {
        continue;
      }
    }
    if ($level == 2) {
      continue;
    }
  }
  return $name;
}
?>
OK
--EXPECT--
OK