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 {
|
||||
$zipData->copyDataToStream($handle);
|
||||
} catch (ZipException $e) {
|
||||
unlink($file);
|
||||
if (is_file($file)) {
|
||||
unlink($file);
|
||||
}
|
||||
|
||||
throw $e;
|
||||
}
|
||||
|
Reference in New Issue
Block a user