You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 26, 2022. It is now read-only.
If I try to write to a compressed CSV file, then I get an exception using the file wrapper compress.zlib://
I think it has to do with the seekable file mode used here: $this->filePointer = $this->globalFunctionsHelper->fopen($this->outputFilePath, 'wb+');
Simply removing the + from the file mode seems to solve the problem but I'm not sure if box/spout needs it somewhere for something.
B.t.w. this is the exception and errors I get when I open a file with a compress.zlib wrapper using the latest v2 release:
PHP Warning: fopen(compress.zlib://art.csv.gz): failed to open stream: operation failed in lib/box/spout/src/Spout/Common/Helper/GlobalFunctionsHelper.php on line 25
PHP Fatal error: Uncaught Box\Spout\Common\Exception\IOException: File pointer has not be opened in lib/box/spout/src/Spout/Writer/AbstractWriter.php:175
The text was updated successfully, but these errors were encountered:
cmanley
changed the title
Is it possible to use a non-seekable file mode in openToFile() in AbstractWriter in order to use compress.zlib:// ?
Is it possible to use wb instead of wb+ fopen mode in openToFile() in AbstractWriter in order to use compress.zlib:// ?
Mar 30, 2022
If I try to write to a compressed CSV file, then I get an exception using the file wrapper compress.zlib://
I think it has to do with the seekable file mode used here:
$this->filePointer = $this->globalFunctionsHelper->fopen($this->outputFilePath, 'wb+');
Simply removing the + from the file mode seems to solve the problem but I'm not sure if box/spout needs it somewhere for something.
B.t.w. this is the exception and errors I get when I open a file with a compress.zlib wrapper using the latest v2 release:
The text was updated successfully, but these errors were encountered: