mirror of
https://github.com/php/php-src.git
synced 2025-01-07 11:34:09 +08:00
e9f783fcdd
For rationale, see #6787 Extensions migrated in part 3: * ftp * gmp * iconv * opcache * shmop
35 lines
483 B
PHP
35 lines
483 B
PHP
--TEST--
|
|
Wrong assertion
|
|
--EXTENSIONS--
|
|
opcache
|
|
--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
|