mongodb/mongo-php-driver — pull request #132 by jmikola (2012-08-15 22:08:43+00:00)
Title: [PHP-450] GridFS tests

https://jira.mongodb.org/browse/PHP-450

There are several failures:

* MongoGridFS::remove() with filename argument [tests/generic/mongogridfs-remove-002.phpt]
* This doesn't seem to be supported, although it's documented [here](http://www.php.net/manual/en/mongogridfs.remove.php).
* MongoGridFS::storeFile() insertion error without safe option [tests/generic/mongogridfs-storefile-006.phpt]
* Best I can tell, all inserts are using safe mode, which will lead to unique key violations on the chunks collection if you attempt to store the same filename and ID a second time.
* MongoGridFSCursor::key() returns the current element's filename [tests/generic/mongogridfscursor-key-001.phpt]
* The ObjectId is being returned as a string instead of the filename.