|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2012-07-13 13:32 UTC] nabody at nm dot ru
-Summary: XAMPP 1.7.7 [PHP: 5.3.8]
+Summary: Exception in Exception
[2012-07-13 13:32 UTC] nabody at nm dot ru
[2012-07-16 16:08 UTC] ab@php.net
-Status: Open
+Status: Not a bug
[2012-07-16 16:08 UTC] ab@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 05:00:01 2025 UTC |
Description: ------------ Do not handle the exception in the exception. Test script: --------------- set_exception_handler(function($e){ set_exception_handler(function($e){echo $e->getMessage();}); echo $e->getMessage(); throw new Exception('Fail 2'); }); throw new Exception('Fail 1'); Expected result: ---------------- Fail 1 Fail 2 Actual result: -------------- Fail 1 Fatal error: Uncaught exception 'Exception' with message 'Fail 2' in ...