Commit 5459f0e5 authored by Ralf Becker's avatar Ralf Becker

ZP-977 Closing streams after exporting.

Released under the Affero GNU General Public License (AGPL) version 3.
parent 19824533
...@@ -177,7 +177,7 @@ class WBXMLEncoder extends WBXMLDefs { ...@@ -177,7 +177,7 @@ class WBXMLEncoder extends WBXMLDefs {
} }
/** /**
* Puts content of a stream on the output stack. * Puts content of a stream on the output stack AND closes it.
* *
* @param resource $stream * @param resource $stream
* @param boolean $asBase64 if true, the data will be encoded as base64, default: false * @param boolean $asBase64 if true, the data will be encoded as base64, default: false
...@@ -197,6 +197,8 @@ class WBXMLEncoder extends WBXMLDefs { ...@@ -197,6 +197,8 @@ class WBXMLEncoder extends WBXMLDefs {
if (!$asBase64) { if (!$asBase64) {
stream_filter_remove($rnc_filter); stream_filter_remove($rnc_filter);
} }
fclose($stream);
} }
/** /**
......
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