📄 Viewing: exception_set_previous_leak.phpt

--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

🌑 DarkStealth — WP Plugin Edition

Directory: /usr/src/php-7.4.23/Zend/tests