Ne-Lexa 5 年 前
コミット
bb1a607d0d
1 ファイル変更3 行追加1 行削除
  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;
             }