1
0
mirror of https://github.com/Ne-Lexa/php-zip.git synced 2025-01-17 07:18:14 +01:00
This commit is contained in:
Ne-Lexa 2021-05-16 23:40:27 +03:00
parent bb1a607d0d
commit ac3533dece

View File

@ -516,7 +516,7 @@ class ZipFile implements ZipFileInterface
$zipData->copyDataToStream($handle);
} catch (ZipException $e) {
if (is_file($file)) {
unlink($file);
@unlink($file);
}
throw $e;
@ -1633,7 +1633,7 @@ class ZipFile implements ZipFileInterface
if (!@rename($tempFilename, $filename)) {
if (is_file($tempFilename)) {
unlink($tempFilename);
@unlink($tempFilename);
}
throw new ZipException(sprintf('Cannot move %s to %s', $tempFilename, $filename));