Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion lib/Internal/FileTask.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,14 @@ public function run(Environment $environment) {
case "x+":
case "c":
case "c+":
case "e":

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why did you add e here?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think I've misinterpreted the code here (and expected that e was being passed down, I'll remove :)

break;

default:
throw new \Error("Invalid file mode");
}

$handle = @\fopen($path, $mode . 'b');
$handle = @\fopen($path, $mode . 'e');

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it should be be.


if (!$handle) {
$message = 'Could not open the file.';
Expand Down