mirror of
https://github.com/php/php-src.git
synced 2024-12-14 04:16:30 +08:00
baf97b1fcc
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.
16 lines
211 B
PHP
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
|