1
0
mirror of https://github.com/danog/file.git synced 2024-11-26 11:54:54 +01:00

Additionally use "e" flag when opening files

This commit is contained in:
Scott Pringle 2017-10-29 22:56:27 -05:00 committed by Aaron Piotrowski
parent 007e084779
commit 271ad2bf4a
No known key found for this signature in database
GPG Key ID: ADD1EF783EDE9EEB

View File

@ -71,7 +71,7 @@ class FileTask implements Task {
throw new \Error("Invalid file mode");
}
$handle = @\fopen($path, $mode . 'b');
$handle = @\fopen($path, $mode . 'be');
if (!$handle) {
$message = 'Could not open the file.';