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

Commit

Permalink
Added "b" flag to fopen for binary writes
Browse files Browse the repository at this point in the history
  • Loading branch information
stil committed Feb 23, 2015
1 parent f74f2a2 commit 94410d7
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 @@ -15,7 +15,7 @@ class MemoryStream

public function __construct()
{
$this->phpStream = fopen("php://memory", "w+");
$this->phpStream = fopen("php://memory", "wb+");
}

public function loadFromFile($path)
Expand Down

0 comments on commit 94410d7

Please sign in to comment.