mirror of
https://github.com/php/php-src.git
synced 2025-01-10 04:54:47 +08:00
75bc3446f8
All these tests are meant to run with OPcache available, and some will even fail inevitably without it, so we add OPcache as SKIPIF requirement.
35 lines
508 B
PHP
35 lines
508 B
PHP
--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
|