PhpSpreadsheet/tests/PhpSpreadsheetTests
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
..
Calculation Resolve utf-8 named ranges in calculation engine (#1522) 2020-06-13 17:35:29 +02:00
Cell Range operator tests (#1501) 2020-06-02 07:38:35 +02:00
Chart Update PHP-CS-Fixer rules 2020-05-18 13:49:57 +09:00
Collection Update PHP-CS-Fixer rules 2020-05-18 13:49:57 +09:00
Custom Update PHP-CS-Fixer rules 2020-05-18 13:49:57 +09:00
Functional Update PHP-CS-Fixer rules 2020-05-18 13:49:57 +09:00
Helper Update PHP-CS-Fixer rules 2020-05-18 13:49:57 +09:00
Reader Testing - Delete Temp Files When No Longer Needed (#1488) 2020-05-24 20:03:07 +09:00
Shared Fix Issue 1441 (isDateTime and Formulas) (#1480) 2020-05-24 20:02:39 +02:00
Style Update PHP-CS-Fixer rules 2020-05-18 13:49:57 +09:00
Worksheet Password and hash are exclusive 2020-05-31 22:36:37 +09:00
Writer Fix for #1516 (#1530) 2020-06-19 20:26:02 +02:00
DocumentGeneratorTest.php Update PHP-CS-Fixer rules 2020-05-18 13:49:57 +09:00
IOFactoryTest.php Update PHP-CS-Fixer rules 2020-05-18 13:49:57 +09:00
ReferenceHelperTest.php Update PHP-CS-Fixer rules 2020-05-18 13:49:57 +09:00
SettingsTest.php Update PHP-CS-Fixer rules 2020-05-18 13:49:57 +09:00
SpreadsheetTest.php Update PHP-CS-Fixer rules 2020-05-18 13:49:57 +09:00