1--TEST--
2Test case where the implicit previous finally exception would result in recursion
3--FILE--
4<?php
5try {
6    $e = new Exception("M1");
7    try {
8        throw new Exception("M2", 0, $e);
9    } finally {
10        throw $e;
11    }
12} finally {}
13?>
14--EXPECTF--
15Fatal error: Uncaught Exception: M1 in %s:%d
16Stack trace:
17#0 {main}
18  thrown in %s on line %d
19