diff --git a/lib/Internal/FileTask.php b/lib/Internal/FileTask.php index 46a90b3..1d04a4c 100644 --- a/lib/Internal/FileTask.php +++ b/lib/Internal/FileTask.php @@ -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.';