mirror of
https://github.com/php/php-src.git
synced 2024-12-13 20:05:26 +08:00
22 lines
276 B
PHP
22 lines
276 B
PHP
--TEST--
|
|
Live range & throw from finally
|
|
--FILE--
|
|
<?php
|
|
function test() {
|
|
try {
|
|
$a = [1, 2, 3];
|
|
return $a + [];
|
|
} finally {
|
|
throw new Exception;
|
|
}
|
|
}
|
|
|
|
try {
|
|
test();
|
|
} catch (Exception $e) {
|
|
echo "exception\n";
|
|
}
|
|
?>
|
|
--EXPECT--
|
|
exception
|