Skip to content

Fix GH-9309: Segfault when connection is used after imap_close() #9313

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

Closed
wants to merge 1 commit into from

Conversation

cmb69
Copy link
Member

@cmb69 cmb69 commented Aug 12, 2022

We actually need to check whether php_imap_object.imap_stream is
NULL to detect that the connection has already been closed.

We actually need to check whether `php_imap_object.imap_stream` is
`NULL` to detect that the connection has already been closed.
@cmb69 cmb69 requested a review from Girgias August 12, 2022 12:43
Copy link
Member

@Girgias Girgias left a comment

Choose a reason for hiding this comment

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

I probably should have written such a test when I converted to object in the first place >-<

@cmb69 cmb69 closed this in 71c22ef Aug 12, 2022
@cmb69 cmb69 deleted the cmb/gh9309 branch August 12, 2022 14:27
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.

Imap: Segfault when IMAP\Connection is used after imap_close() was called.
3 participants