summaryrefslogtreecommitdiff
path: root/Zend/tests/exception_set_previous_leak.phpt
blob: 7fb680f95168477dc9e309fbf2f8395174ffd7ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--TEST--
Leak when setting recursive previous exception in finally handling
--FILE--
<?php

try {
    try {
        throw new Exception("Test");
    } catch (Exception $e) {
        throw $e;
    } finally {
        throw $e;
    }
} catch (Exception $e2) {
    echo $e2->getMessage(), "\n";
}

?>
--EXPECT--
Test