Преглед на файлове

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

Robert Schönthal преди 14 години
родител
ревизия
415b456b4e
променени са 1 файла, в които са добавени 3 реда и са изтрити 0 реда
  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;
         }