mongodb/mongo-php-driver — pull request #22 by derickr (2012-01-02 17:20:11+00:00)
Title: GridFS file read corruption and memory leak fixes

This patch fixes reads that span chunks; in certain occasions the wrong memory would be read. It also fixes two extra memory leaks that I managed to hunt down.