Sfoglia il codice sorgente

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

Fabien Potencier 14 anni fa
parent
commit
7b835cbc57

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

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