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
{{ message }}
Repository navigation
Stream context is lost when custom stream wrapper is being filtered #15155
string(3) "bar"
Fatal error: Uncaught TypeError: stream_context_get_options(): Argument #1 ($stream_or_context) must be of type resource, null given in /in/hlqFE:14
Stack trace:
#0 /in/hlqFE(14): stream_context_get_options(NULL)
#1 [internal function]: DummyWrapper->stream_open('dummy://foo', 'rb', 0, NULL)
#2 /in/hlqFE(35): file_get_contents('php://filter/re...', false, Resource id #7)
#3 {main}
thrown in /in/hlqFE on line 14
I think it makes sense to pass context to the resource. Although I would probably see that more as a feature even though it's probably somewhere between. But considering that it could impact behavior in some cases, I think this will be better just for master branch (it means PHP 8.4)
Activity
bukka commentedon Jul 29, 2024
I think it makes sense to pass context to the resource. Although I would probably see that more as a feature even though it's probably somewhere between. But considering that it could impact behavior in some cases, I think this will be better just for master branch (it means PHP 8.4)
Fix phpGH-15155: Keep stream context in filtered streams