| 
        php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits             
             [2011-04-02 17:57 UTC] felipe@php.net
  [2011-04-02 17:58 UTC] felipe@php.net
 
-Status: Open
+Status: Feedback
  [2011-04-03 04:28 UTC] mgfreshour at gmail dot com
 
-Status: Feedback
+Status: Open
  [2011-04-03 04:28 UTC] mgfreshour at gmail dot com
  [2011-09-28 11:50 UTC] benoit dot chenu at gmail dot com
  [2013-10-10 03:54 UTC] datibbaw@php.net
 
-Status: Open
+Status: Not a bug
  [2013-10-10 03:54 UTC] datibbaw@php.net
  | 
    |||||||||||||||||||||||||||||||||||||
            
                 
                Copyright © 2001-2025 The PHP GroupAll rights reserved.  | 
        Last updated: Tue Nov 04 13:00:02 2025 UTC | 
Description: ------------ The test script will result in an "PHP Fatal error: Uncaught exception 'Exception'" with output of : Start Commenting out the if block will result in the expected output of : Start Inside Finish It seems the empty if block is nullifying the catch blocks. Test script: --------------- <?php echo "Start\n"; try { try { throw new Exception("I'm dead"); if (0) { } } catch (Exception $e) { echo "Inside\n"; } } catch (Exception $e) { echo "Outside\n"; } echo "Finish\n"; Expected result: ---------------- Start Inside Finish Actual result: -------------- Start PHP Fatal error: Uncaught exception 'Exception'