blob: 624050295eab7251d1ec821078406514ee26f7c8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
--TEST--
Bug #72213 (Finally leaks on nested exceptions)
--FILE--
<?php
function test() {
try {
throw new Exception('a');
} finally {
try {
throw new Exception('b');
} finally {
}
}
}
try {
test();
} catch (Exception $e) {
var_dump($e->getMessage());
var_dump($e->getPrevious()->getMessage());
}
?>
--EXPECT--
string(1) "b"
string(1) "a"
|