Skip to content
This repository has been archived by the owner on Jan 24, 2021. It is now read-only.

Commit

Permalink
Use binary flag for file reading in MemoryStream, fix #5
Browse files Browse the repository at this point in the history
  • Loading branch information
stil committed Oct 14, 2016
1 parent b59131d commit a17e5a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MemoryStream.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public function __construct()

public function loadFromFile($path)
{
$this->phpStream = fopen($path, 'r');
$this->phpStream = fopen($path, 'rb');
stream_set_read_buffer($this->phpStream, 1024*1024);
$this->seek(0);
}
Expand Down

0 comments on commit a17e5a0

Please sign in to comment.