xref: /PHP-8.3/ext/opcache/tests/ssa_bug_010.phpt (revision e9f783fc)
1--TEST--
2Wrong assertion
3--EXTENSIONS--
4opcache
5--FILE--
6<?php
7function foo($parts, $a, $b) {
8  $name = $a;
9  $level = 1;
10  foreach ($parts as $part) {
11    if ($level == 1) {
12      $level = 4;
13      $found = true;
14      switch ($part) {
15        case 'general':
16          break;
17        case 'bg':
18          $name = $b;
19          break;
20      }
21      if ($found) {
22        continue;
23      }
24    }
25    if ($level == 2) {
26      continue;
27    }
28  }
29  return $name;
30}
31?>
32OK
33--EXPECT--
34OK
35