1--TEST--
2Leak when setting recursive previous exception in finally handling
3--FILE--
4<?php
5
6try {
7    try {
8        throw new Exception("Test");
9    } catch (Exception $e) {
10        throw $e;
11    } finally {
12        throw $e;
13    }
14} catch (Exception $e2) {
15    echo $e2->getMessage(), "\n";
16}
17
18?>
19--EXPECT--
20Test
21