Parcourir la source

[HttpKernel] reset handling if subject::handle throws an exception, otherwise it wouldnt be able to handle furthermore

Robert Schönthal il y a 14 ans
Parent
commit
415b456b4e
1 fichiers modifiés avec 3 ajouts et 0 suppressions
  1. 3 0
      src/Symfony/Component/HttpKernel/Debug/ExceptionListener.php

+ 3 - 0
src/Symfony/Component/HttpKernel/Debug/ExceptionListener.php

@@ -77,6 +77,9 @@ class ExceptionListener
                 error_log($message);
             }
 
+            // set handling to false otherwise it wont be able to handle further more
+            $handling = false;
+            
             // re-throw the exception as this is a catch-all
             throw $exception;
         }