mirror of
https://github.com/Ne-Lexa/php-zip.git
synced 2025-01-17 07:18:14 +01:00
fix test
This commit is contained in:
parent
8954da9e32
commit
bb1a607d0d
@ -515,7 +515,9 @@ class ZipFile implements ZipFileInterface
|
||||
try {
|
||||
$zipData->copyDataToStream($handle);
|
||||
} catch (ZipException $e) {
|
||||
unlink($file);
|
||||
if (is_file($file)) {
|
||||
unlink($file);
|
||||
}
|
||||
|
||||
throw $e;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user