Commit 0f0b058a authored by Etienne CHAMPETIER's avatar Etienne CHAMPETIER

ZP-797 WBXMLDecoder->GetPlainInputStream() use stream_get_contents().

Released under the Affero GNU General Public License (AGPL) version 3.
parent b964ee6f
......@@ -263,11 +263,7 @@ class WBXMLDecoder extends WBXMLDefs {
* @return string
*/
public function GetPlainInputStream() {
$plain = $this->inputBuffer;
while($data = fread($this->in, 4096))
$plain .= $data;
return $plain;
return $this->inputBuffer.stream_get_contents($this->in);
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment