mirror of
https://github.com/Ne-Lexa/php-zip.git
synced 2025-08-02 13:37:25 +02:00
fix test
This commit is contained in:
@@ -515,7 +515,9 @@ class ZipFile implements ZipFileInterface
|
|||||||
try {
|
try {
|
||||||
$zipData->copyDataToStream($handle);
|
$zipData->copyDataToStream($handle);
|
||||||
} catch (ZipException $e) {
|
} catch (ZipException $e) {
|
||||||
unlink($file);
|
if (is_file($file)) {
|
||||||
|
unlink($file);
|
||||||
|
}
|
||||||
|
|
||||||
throw $e;
|
throw $e;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user