|  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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
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-2022 The PHP Group
All rights reserved.
Last updated: Thu Sep 29 13:05:52 2022 UTC