exception_set_previous_leak.phpt 314 B

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