Ne-Lexa 5 năm trước cách đây
mục cha
commit
bb1a607d0d
1 tập tin đã thay đổi với 3 bổ sung1 xóa
  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;
             }