Skip to content

Commit

Permalink
Fixes #72: Use r instead of r+, read streams should only be readable …
Browse files Browse the repository at this point in the history
…in the Local adapter
  • Loading branch information
frankdejonge committed Feb 10, 2014
1 parent 1db6805 commit f0cd94b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Adapter/Local.php
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ public function writeStream($path, $resource, $config = null)
*/
public function readStream($path)
{
$stream = fopen($this->prefix($path), 'r+');
$stream = fopen($this->prefix($path), 'r');

return compact('stream', 'path');
}
Expand Down

0 comments on commit f0cd94b

Please sign in to comment.