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
Implement a lazy open stream class (or maybe just make it the default). What this means is that the stream resource isn't opened until an I/O operation is performed on it.
I came up with an alternative solution for this... instead of creating an entirely new stream class, I abstracted the concept of a "stream resource" into a class of its own. the Stream class will now use it internally in place of simply using a php stream resource handle. Then the resource object will lazy-open instead of the stream. Let me demonstrate:
Implement a lazy open stream class (or maybe just make it the default). What this means is that the stream resource isn't opened until an I/O operation is performed on it.
The text was updated successfully, but these errors were encountered: