1
0
mirror of https://github.com/php/php-src.git synced 2026-04-16 20:41:18 +02:00
Files
archived-php-src/ext/opcache/tests/ssa_bug_010.phpt
2017-11-08 12:51:53 +03:00

33 lines
460 B
PHP

--TEST--
Wrong assertion
--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