mongodb/mongo-php-driver — pull request #271 by bjori (2013-01-16 20:23:02+00:00)
Title: Fix earlier fix for PHP-375

Properly validate the types of the variables we are working with to
avoid invalid reads.
Also bail out if we can't determin a value to avoid another invalid
read.
And fix a memory leak when we overflow the filesize