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
Warning: rewind(): stream does not support seeking #317
Comments
Seeking GridFS streams is an outstanding feature, which is being tracked in PHPLIB-213. Based on discussion in https://github.com/fruux/sabre-dav/issues/787, StreamWrapper implementations have no control over the "seekable" property of |
@acid24: We have an implementation of seeking for readable streams in #325 if you'd like to test that out. Since it's a new feature, it will not be released until 1.2.0; however, I'd be interested to hear whether it meets your needs. In the meantime, I'm going to close this issue. Please watch PHPLIB-213 or the above PR for further updates. |
@jmikola OK, I will test it and let you know. Thank you |
1.2.0-alpha1 is now tagged and includes seeking functionality for GridFS. |
PHP version used: 7.1.0
mongo-php-library version: 1.1.0
Hello,
Using this code
I get a "Warning: rewind(): stream does not support seeking" even though stream_get_meta_data function advertises that the stream is seekable
This behavior causes an error in Slim framework which tries to rewind the stream in the Response object if the stream is seekable before sending it out
The text was updated successfully, but these errors were encountered: