|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2010-12-09 16:40 UTC] dmitry@php.net
-Status: Open
+Status: Assigned
-Assigned To:
+Assigned To: dmitry
[2010-12-09 17:38 UTC] dmitry@php.net
[2010-12-09 17:38 UTC] dmitry@php.net
-Status: Assigned
+Status: Closed
[2010-12-09 17:38 UTC] dmitry@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 23:00:01 2025 UTC |
Description: ------------ In ZEND_CATCH instruction PHP assigns exception object to the given variable and destroys its previous value, but this variable might keep an object that throws an exception during destruction. As result PHP loses both exceptions. Test script: --------------- <?php class Foo { function __destruct() { throw new Exception("ops 1"); } } function test() { $e = new Foo(); try { throw new Exception("ops 2"); } catch (Exception $e) { echo $e->getMessage()."\n"; } } test(); echo "bug\n"; Expected result: ---------------- information about exception(s) Actual result: -------------- bug