Ne-Lexa il y a 5 ans
Parent
commit
bb1a607d0d
1 fichiers modifiés avec 3 ajouts et 1 suppressions
  1. 3 1
      src/ZipFile.php

+ 3 - 1
src/ZipFile.php

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