Skip to content
This repository was archived by the owner on Jan 31, 2020. It is now read-only.

Commit 98ed71c

Browse files
committed
Merge branch 'hotfix/166'
Close #166 Fixes zendframework/zendframework#7629
2 parents 49cf0ae + f4303c4 commit 98ed71c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/File/MimeType.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -385,6 +385,7 @@ public function isValid($value, $file = null)
385385
$this->type = null;
386386
if (! empty($this->finfo)) {
387387
$this->type = finfo_file($this->finfo, $file);
388+
finfo_close($this->finfo);
388389
}
389390
}
390391

0 commit comments

Comments
 (0)