Skip to content

PHPLIB-345: Fix PHP shutdown error with dangling writable streams #779

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

Merged
merged 3 commits into from
Sep 1, 2020

Conversation

alcaeus
Copy link
Member

@alcaeus alcaeus commented Aug 31, 2020

PHPLIB-345

This applies a suggestion by @sgolemon to avoid PHP trying to use previously destroyed stream objects. The behaviour can be shown by leaving a dangling writable stream, which causes errors on shutdown. The workaround ensures that the stream wrapper instance "forgets" that it owned a stream wrapper, as StreamWrapper::stream_close is called after StreamWrapper::__destruct.

@alcaeus alcaeus requested a review from jmikola August 31, 2020 12:03
@alcaeus alcaeus self-assigned this Aug 31, 2020
@alcaeus alcaeus merged commit a32f018 into mongodb:v1.7 Sep 1, 2020
@alcaeus alcaeus deleted the phplib-345 branch September 1, 2020 14:12
alcaeus added a commit that referenced this pull request Sep 1, 2020
* v1.7:
  PHPLIB-345: Fix PHP shutdown error with dangling writable streams (#779)
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.

2 participants