-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Should Guzzle\Stream\Stream close the resource in __destruct(), even if it is not him who opens it? #682
Comments
A stream object will close the underlying stream resource when it's |
Close resource in php.net says:
|
Ah, I missed this issue when I opened mine a few months ago => exact same thing => #2400 |
This is not an issue, just a little bit counterintutive:
Also, it's unclear if the stream will be closed in case some exception occurs in the middle of the ->post()
Theoretically, there can be cases where you don't want the stream to be automatically closed (even though i can't think of one right now :-) )
The text was updated successfully, but these errors were encountered: