php-src/Zend/tests/temporary_cleaning_008.phpt
Dmitry Stogov baf97b1fcc We don't nees zend_op_array->brk_cont_array at run-time anymore.
Move zend_op_array->brk_cont_array into CG(context).brk_cont_array.
Use more compact zend_op_array->live_range instead of zend_op_array->brk_cont_array.
Semantic is kept unchanged.
2015-11-10 21:48:03 +03:00

16 lines
211 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