1
0
mirror of https://github.com/php/php-src.git synced 2026-04-29 03:03:26 +02:00
Files
archived-php-src/Zend/tests/temporary_cleaning_008.phpt
T
2018-10-14 12:07:20 -03:00

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