mirror of
https://github.com/filegator/filegator.git
synced 2025-08-01 00:40:26 +02:00
checking resource before closing zip
This commit is contained in:
@@ -124,7 +124,9 @@ class ZipArchiver implements Service, ArchiverInterface
|
||||
|
||||
$file = $this->tmpfs->readStream($this->uniqid);
|
||||
$this->storage->store($destination, $name, $file['stream']);
|
||||
if (is_resource($file['stream'])) {
|
||||
fclose($file['stream']);
|
||||
}
|
||||
|
||||
$this->tmpfs->remove($this->uniqid);
|
||||
}
|
||||
|
Reference in New Issue
Block a user