PhpSpreadsheet/tests/PhpSpreadsheetTests/Writer/Xlsx
oleibman 82ea1d5596
Fix for #1516 (#1530)
This problem is that ZipStream, in contrast to ZipArchive,
is saving 2 files with the same path. I have opened an issue with
ZipStream, who agree that this appears to be a bug.

For the case in question, PhpSpreadsheet is attempting to save
a file with the same path twice (and unexpectedly succeeding)
because of a clone operation. This fix attempts to rectify the problem
by keeping track of all the paths being saved in the zip file,
and not attempting to save any duplicate paths.

The problem case attempted to save printersettings1.bin twice,
but there are other possible exposures, e.g. by cloning a sheet
with a drawing.The new test cases clone an existing sample which
has both printer settings and drawings.
2020-06-19 20:26:02 +02:00
..
DrawingsTest.php Fix saving XLSX with drawings (#1462) 2020-05-23 13:09:10 +02:00
FloatsRetainedTest.php Testing - Delete Temp Files When No Longer Needed (#1488) 2020-05-24 20:03:07 +09:00
LocaleFloatsTest.php Update PHP-CS-Fixer rules 2020-05-18 13:49:57 +09:00
UnparsedDataCloneTest.php Fix for #1516 (#1530) 2020-06-19 20:26:02 +02:00
UnparsedDataTest.php Update PHP-CS-Fixer rules 2020-05-18 13:49:57 +09:00