mirror of
https://github.com/php/php-src.git
synced 2024-09-22 18:37:25 +00:00
22 lines
267 B
PHP
22 lines
267 B
PHP
--TEST--
|
|
Switch where all targets, including default, coincide
|
|
--FILE--
|
|
<?php
|
|
|
|
$foo = 42.0;
|
|
$bar = true;
|
|
|
|
switch ($foo) {
|
|
default:
|
|
case 0: case 1: case 2: case 3:
|
|
if ($bar) {
|
|
echo "true\n";
|
|
} else {
|
|
echo "false\n";
|
|
}
|
|
}
|
|
|
|
?>
|
|
--EXPECT--
|
|
true
|