Ne-Lexa %!s(int64=5) %!d(string=hai) anos
pai
achega
bb1a607d0d
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      src/ZipFile.php

+ 3 - 1
src/ZipFile.php

@@ -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;
             }