Skip to content

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

Closed
cmb69 wants to merge 1 commit into
php:PHP-8.1from
cmb69:cmb/gh9309
Closed

cmb69 wants to merge 1 commit into
php:PHP-8.1from
cmb69:cmb/gh9309

Conversation

@cmb69

@cmb69 cmb69 commented Aug 12, 2022

Copy link
Copy Markdown
Member

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

@Girgias Girgias left a comment

Copy link
Copy Markdown
Member

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