Skip to content

Commit 8fa6f64

Browse files
authored
Merge pull request #21 from fortix/fixed-incompatible-call
fixed incompatible call
2 parents 69221f1 + 03383b6 commit 8fa6f64

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/MAPI/OLE/Pear/DocumentElement.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ public function saveToStream($stream)
187187

188188
// nasty Pear_OLE actually writes out a temp file and fpassthru's on it. Yuck.
189189
// so let's give a wrapped stream which ignores Pear_OLE's fopen() and fclose()
190-
$wrappedStreamUrl = StreamWrapper::wrapStream($stream);
190+
$wrappedStreamUrl = StreamWrapper::wrapStream($stream, 'r');
191191
$root->save($wrappedStreamUrl);
192192

193193
/*ob_start();

0 commit comments

Comments
 (0)