瀏覽代碼

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