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
Throw an exception in StreamWrapper::getResource if non seekable Stream objects are passed as an argument.
Additional context
As far as my research went, custom stream wrappers are currently always treated as seekable (which does not make any sense IMHO). So therefore this can only be implemented in Guzzle as soon as support for none seekable custom stream wrappers is implemented in PHP.
The text was updated successfully, but these errors were encountered:
This issue has been automatically marked as stale because it has not had recent activity. It will be closed after 2 weeks if no further activity occurs. Thank you for your contributions.
PHP version: 8.1.11
Description
Resources created by
StreamWrapper::getResource
are always seekable, even if the underlying Stream object, is not.How to reproduce
Possible Solution
Throw an exception in
StreamWrapper::getResource
if non seekable Stream objects are passed as an argument.Additional context
As far as my research went, custom stream wrappers are currently always treated as seekable (which does not make any sense IMHO). So therefore this can only be implemented in Guzzle as soon as support for none seekable custom stream wrappers is implemented in PHP.
The text was updated successfully, but these errors were encountered: