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