소스 검색

[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;
         }