This should use php_mongo_cursor_throw, like in the other file.