mirror of
https://github.com/danog/file.git
synced 2024-11-30 04:19:39 +01:00
Additionally use "e" flag when opening files
This commit is contained in:
parent
007e084779
commit
271ad2bf4a
@ -71,7 +71,7 @@ class FileTask implements Task {
|
|||||||
throw new \Error("Invalid file mode");
|
throw new \Error("Invalid file mode");
|
||||||
}
|
}
|
||||||
|
|
||||||
$handle = @\fopen($path, $mode . 'b');
|
$handle = @\fopen($path, $mode . 'be');
|
||||||
|
|
||||||
if (!$handle) {
|
if (!$handle) {
|
||||||
$message = 'Could not open the file.';
|
$message = 'Could not open the file.';
|
||||||
|
Loading…
Reference in New Issue
Block a user