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

imap_reopen(): Couldn't re-open stream #522

Closed
tomsommer opened this issue Oct 11, 2021 · 3 comments · Fixed by #524
Closed

imap_reopen(): Couldn't re-open stream #522

tomsommer opened this issue Oct 11, 2021 · 3 comments · Fixed by #524

Comments

@tomsommer
Copy link
Contributor

imap_reopen() can fail and trigger PHP's internal error handler

\imap_reopen($this->resource, $this->mailbox->getFullEncodedName());

@Slamdunk
Copy link
Collaborator

Didn't know that, if you can provide a PR that handles this cause it would be awesome, maybe the at operator @ is enough

@tomsommer
Copy link
Contributor Author

Sure, or do you prefer this method:

\set_error_handler(static function (): bool {
?

@Slamdunk
Copy link
Collaborator

Give it a chance 👍

tomsommer added a commit to tomsommer/imap that referenced this issue Oct 20, 2021
Slamdunk pushed a commit to tomsommer/imap that referenced this issue Nov 30, 2021
Slamdunk pushed a commit that referenced this issue Nov 30, 2021
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 a pull request may close this issue.

2 participants