|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2014-10-06 13:45 UTC] alexeydsov at gmail dot com
[2014-10-06 19:03 UTC] nikic@php.net
-Assigned To:
+Assigned To: laruence
[2014-10-06 19:03 UTC] nikic@php.net
[2014-10-07 02:39 UTC] laruence@php.net
-Status: Assigned
+Status: Wont fix
[2014-10-07 02:39 UTC] laruence@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 09:00:02 2025 UTC |
Description: ------------ If you throw Exception in try block and in finally block you throw and catch another exception than you loose first exception outside the try/catch/finally block. This bug work in 5.5.17, not work in 5.6. Test script: --------------- try { try { echo "1\n"; throw new Exception("E1"); } finally { try { echo "2\n"; throw new Exception("E2"); } catch (\Exception $e) { echo "3\n"; } } echo "4-\n"; } catch (\Exception $e) { echo "4+".$e->getMessage()."\n"; } echo "5\n"; Expected result: ---------------- 1 2 3 4+E1 5 Actual result: -------------- 1 2 3 5