1
0
mirror of https://github.com/php/php-src.git synced 2026-04-23 07:58:20 +02:00
Files
archived-php-src/Zend/tests/try/bug72213_2.phpt
T
2016-05-19 13:22:46 +03:00

26 lines
415 B
PHP

--TEST--
Bug #72213 (Finally leaks on nested exceptions)
--FILE--
<?php
function test() {
try {
throw new Exception(1);
} finally {
try {
try {
throw new Exception(2);
} finally {
}
} catch (Exception $e) {
}
}
}
try {
test();
} catch (Exception $e) {
echo "caught {$e->getMessage()}\n";
}
--EXPECT--
caught 1