go to bug id or search bugs for
From manual page: http://www.php.net/mongogridfsfile.getresource#refsect1-
public stream MongoGridFSFile::getResource ( void )
This method returns a stream resource that can be used with all file functions in
so I expect to have new chunks in my fs.chunk collection when I use fwrite on a
resource which was created by this function
Only the read file function run on a gridfs resource.
fwrite, fflush, fputs don't work ...
Add a Patch
Add a Pull Request
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php
The stream resource can only be used for writing. Files stored in GridFS are considered immutable, and we've since then updated the documentation to reflect this as well.