mirror of
https://github.com/PHPOffice/PhpSpreadsheet.git
synced 2026-08-30 03:59:11 +00:00
Update the fopen mode for writer
This commit is contained in:
@@ -108,7 +108,7 @@ abstract class BaseWriter implements IWriter
|
||||
return;
|
||||
}
|
||||
|
||||
$fileHandle = $filename ? fopen($filename, 'wb+') : false;
|
||||
$fileHandle = $filename ? fopen($filename, 'wb') : false;
|
||||
if ($fileHandle === false) {
|
||||
throw new Exception('Could not open file "' . $filename . '" for writing.');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user