Parcourir la source

[TESTS] Backport r24479 to trunk

Do not flush XMLWriter

- XML-RPC XMLWriter-based generation was flushing output, which caused test
  failures. Changed flag to not flush

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@24480 44c647ce-9c0f-0410-b52a-842ac1e357ba
matthew il y a 14 ans
Parent
commit
515d3d4dd4
1 fichiers modifiés avec 3 ajouts et 2 suppressions
  1. 3 2
      library/Zend/XmlRpc/Generator/XmlWriter.php

+ 3 - 2
library/Zend/XmlRpc/Generator/XmlWriter.php

@@ -87,6 +87,7 @@ class Zend_XmlRpc_Generator_XmlWriter extends Zend_XmlRpc_Generator_GeneratorAbs
 
 
     public function saveXml()
     public function saveXml()
     {
     {
-        return $this->_xmlWriter->flush(true);
+        $xml = $this->_xmlWriter->flush(false);
+        return $xml;
     }
     }
-}
+}