Skip to content

Commit 03383b6

Browse files
author
Richard Toth
committed
fixed incompatible call
1 parent 0d2c767 commit 03383b6

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)