xref: /PHP-7.3/ext/opcache/tests/ssa_bug_010.phpt (revision 75bc3446)
1--TEST--
2Wrong assertion
3--SKIPIF--
4<?php require_once('skipif.inc'); ?>
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