blob: 81a54f351efc1b84fb59a2eb748e835e86e65b5e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
--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
|