Skip to content

Commit 40c3ea7

Browse files
committed
Merge branch 'hotfix/84'
Close #84
2 parents 234b081 + 423501e commit 40c3ea7

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ All notable changes to this project will be documented in this file, in reverse
2424

2525
- [#83](https://github.com/laminas/laminas-mail/pull/83) fixes PHPDocs in `Transport\InMemory` (last message can be `null`).
2626

27+
- [#84](https://github.com/laminas/laminas-mail/pull/84) fixes PHP 7.4 compatibility.
28+
2729
## 2.10.0 - 2018-06-07
2830

2931
### Added

src/Storage/Mbox.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,10 @@ protected function openMboxFile($filename)
257257
$this->close();
258258
}
259259

260+
if (is_dir($filename)) {
261+
throw new Exception\InvalidArgumentException('file is not a valid mbox file');
262+
}
263+
260264
ErrorHandler::start();
261265
$this->fh = fopen($filename, 'r');
262266
$error = ErrorHandler::stop();

0 commit comments

Comments
 (0)