Explorar el Código

ZF-6994: use implode instead of foreach loop when outputting response body

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@17707 44c647ce-9c0f-0410-b52a-842ac1e357ba
matthew hace 16 años
padre
commit
321f092c5c
Se han modificado 1 ficheros con 2 adiciones y 3 borrados
  1. 2 3
      library/Zend/Controller/Response/Abstract.php

+ 2 - 3
library/Zend/Controller/Response/Abstract.php

@@ -543,9 +543,8 @@ abstract class Zend_Controller_Response_Abstract
      */
     public function outputBody()
     {
-        foreach ($this->_body as $content) {
-            echo $content;
-        }
+        $body = implode('', $this->_body);
+        echo $body;
     }
 
     /**