You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A stream object will close the underlying stream resource when it's __destruct() method is called or when you call close() on it. It will not close in the event of an exception because it is referenced by the exception. When the reference count equals 0, then the stream will __destruct(). If you don't want the stream object to close the underlying stream resource, then you can use the detach() method of the stream to remove ownership of the underlying resource from the stream object.
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: