Skip to content
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

Suppression of PHP Warning if Host is not available. #114

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Suppression of PHP Warning if Host is not available. #114

wants to merge 1 commit into from

Conversation

Mowee
Copy link

@Mowee Mowee commented Jan 26, 2015

Also destructor method for error cleanup. Otherwise PHP would trigger an PHP Notice while in shutdown. For the bug report see this issue: https://bugs.php.net/bug.php?id=65455

Also destructor method for error cleanup. Otherwise PHP would trigger an PHP Notice while in shutdown. For the bug report see this issue: https://bugs.php.net/bug.php?id=65455
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.8%) to 89.22% when pulling 0bb1778 on Mowee:master into ba247b8 on tedious:master.

1 similar comment
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.8%) to 89.22% when pulling 0bb1778 on Mowee:master into ba247b8 on tedious:master.

@tomsommer
Copy link
Contributor

+1

@benr77
Copy link
Contributor

benr77 commented Jul 16, 2015

+1 from me too. This is a highly desirable feature. I'm constantly getting warnings about connection problems that are simply to do with brief network connectivity issues etc

{
$this->imapErrors = imap_errors();
}

/**
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't understand the point of this. You're running the "setImapErrors" in the destructor, which is kind of useless- the "this->imapErrors" property is not going to exist after the destructor is called.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tedivm The point of the destructor is to clear errors by checking imap_errors() before php goes in shutdown mode. This seems to be a bug in php. Otherwise php would trigger an Unknown on line 0 Notice. See the bug report that I linked

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants