-
-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix TypeError: fclose(): supplied resource is not a valid stream reso… #134
Conversation
FYI, in zf1s zf1s/zf1#32 handled as diff --git a/packages/zend-mail/library/Zend/Mail/Storage/Mbox.php b/packages/zend-mail/library/Zend/Mail/Storage/Mbox.php
index 90e3791c..de963804 100644
--- a/packages/zend-mail/library/Zend/Mail/Storage/Mbox.php
+++ b/packages/zend-mail/library/Zend/Mail/Storage/Mbox.php
@@ -335,7 +335,9 @@ class Zend_Mail_Storage_Mbox extends Zend_Mail_Storage_Abstract
*/
public function close()
{
- @fclose($this->_fh);
+ if ($this->_fh && 'Unknown' !== get_resource_type($this->_fh)) {
+ @fclose($this->_fh);
+ }
$this->_positions = array();
}
|
@glensc sorry, don't understand your comment |
Notice there is also tons of |
I really think this component is NOT yet compatible with PHP 8 |
You should set your PR status to Draft while it's not ready for merge. |
It is ready to merge as it fixes the test suite. Remaining warnings have to be fixed, but out of the scope of this issue |
Can't do much about that besides pursuing further issues, like #113 :-\ I see that travis-ci completely abandoned us today :-( |
yes, travis gone already yesterday: |
fd62569
to
6964db9
Compare
No description provided.