Skip to content

Commit

Permalink
Merge pull request #21 from fortix/fixed-incompatible-call
Browse files Browse the repository at this point in the history
fixed incompatible call
  • Loading branch information
hfig authored Dec 5, 2020
2 parents 69221f1 + 03383b6 commit 8fa6f64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MAPI/OLE/Pear/DocumentElement.php
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ public function saveToStream($stream)

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

/*ob_start();
Expand Down

0 comments on commit 8fa6f64

Please sign in to comment.