mirror of
https://github.com/php/php-src.git
synced 2024-12-03 23:05:57 +08:00
27 lines
335 B
PHP
27 lines
335 B
PHP
--TEST--
|
|
Testing multiples 'default:' in switch
|
|
--FILE--
|
|
<?php
|
|
|
|
switch (1) {
|
|
case 2:
|
|
print 'foo';
|
|
break;
|
|
case 3:
|
|
print 'bar';
|
|
break;
|
|
default:
|
|
print 1;
|
|
break;
|
|
default:
|
|
print 2;
|
|
break;
|
|
default:
|
|
print 3;
|
|
break;
|
|
}
|
|
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: Switch statements may only contain one default clause in %s on line 13
|