mirror of
https://github.com/php/php-src.git
synced 2024-12-19 15:00:15 +08:00
16 lines
210 B
PHP
16 lines
210 B
PHP
--TEST--
|
|
Optimization of constant switch expression
|
|
--FILE--
|
|
<?php
|
|
try {
|
|
switch ("1" . (int)2) {
|
|
case 12:
|
|
throw new Exception();
|
|
}
|
|
} catch (Exception $e) {
|
|
echo "exception\n";
|
|
}
|
|
?>
|
|
--EXPECT--
|
|
exception
|