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:
parent
007e084779
commit
271ad2bf4a
@ -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.';
|
||||
|
Loading…
Reference in New Issue
Block a user