浏览代码

[FrameworkBundle] added @ before using ob_get_clean() for compatibility with PHP 5.4

Fabien Potencier 14 年之前
父节点
当前提交
7b835cbc57
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/Symfony/Bundle/FrameworkBundle/Controller/ExceptionController.php

+ 1 - 1
src/Symfony/Bundle/FrameworkBundle/Controller/ExceptionController.php

@@ -36,7 +36,7 @@ class ExceptionController extends ContainerAware
         $this->container->get('request')->setRequestFormat($format);
 
         $currentContent = '';
-        while (false !== $content = ob_get_clean()) {
+        while (false !== $content = @ob_get_clean()) {
             $currentContent .= $content;
         }