We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 69221f1 + 03383b6 commit 8fa6f64Copy full SHA for 8fa6f64
1 file changed
src/MAPI/OLE/Pear/DocumentElement.php
@@ -187,7 +187,7 @@ public function saveToStream($stream)
187
188
// nasty Pear_OLE actually writes out a temp file and fpassthru's on it. Yuck.
189
// so let's give a wrapped stream which ignores Pear_OLE's fopen() and fclose()
190
- $wrappedStreamUrl = StreamWrapper::wrapStream($stream);
+ $wrappedStreamUrl = StreamWrapper::wrapStream($stream, 'r');
191
$root->save($wrappedStreamUrl);
192
193
/*ob_start();
0 commit comments