Skip to content

Commit

Permalink
Fix unparse_to_stream.
Browse files Browse the repository at this point in the history
  • Loading branch information
kohler committed Jan 10, 2024
1 parent 7c964c1 commit 08f50a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/csv.php
Original file line number Diff line number Diff line change
Expand Up @@ -926,7 +926,7 @@ function flush() {
}
for ($i = 0; $i !== 100; ++$i) {
$fn = sprintf("%scsvtmp-%d-%08d.csv", $dir, time(), mt_rand(0, 99999999));
if (($this->stream = @fopen($fn, "xb"))) {
if (($this->stream = @fopen($fn, "xb+"))) {
$this->stream_filename = $fn;
break;
}
Expand Down

0 comments on commit 08f50a5

Please sign in to comment.