|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #70944 try{ } finally{} can create infinite chains of exceptions
Submitted: 2015-11-20 08:21 UTC Modified: -
From: Assigned:
Status: Closed Package: *General Issues
PHP Version: 5.6.15 OS:
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
New email:
PHP Version: OS:


 [2015-11-20 08:21 UTC]
try{ } finally{} can create infinite chains of exceptions

Test script:
$e = new Exception("Bar");
try {
      throw new Exception("Foo", 0, $e);
} finally {
      throw $e;

Expected result:
exit normally 

Actual result:
script hangs


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2015-11-20 08:38 UTC]
Automatic comment on behalf of
Log: Fixed bug #70944 (try{ } finally{} can create infinite chains of exceptions)
 [2015-11-20 08:38 UTC]
-Status: Open +Status: Closed
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Sat Aug 08 07:01:25 2020 UTC