mongodb/mongo-php-driver — pull request #318 by bjori (2013-03-07 21:44:29+00:00)
Title: Fixed PHP-704: Incorrect failure checks for stream reads

get_cursor_body() returns 0 on failure. I reviewed all other instances
of similar calls and they all look fine.
On failure, we also need to free the error message after throwing the
exception