1
0
mirror of https://github.com/php/php-src.git synced 2026-04-29 11:13:36 +02:00
Files
archived-php-src/Zend/tests/temporary_cleaning_010.phpt
T
2020-02-03 22:52:20 +01:00

22 lines
279 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