Fixed PHP-585: GridFS incorrectly reports w=1 as w=0
Merged pull request #262
Fixed PHP-479: Compiler errors

node->cursor_id is int64_t (long long)
timeout.tv_usec is int
Another attempt at fixing this for both of us.
Merged pull request #272
This test require replicaset to work
Make sure it will actually timeout
Fixed changed error message in mongod 2.3+
var_dump() the specific indexes so we don't depend on the order of them
(mongod 2.3.2-pre seems to have changed the order)
As of 1.3.0 the non-replicaset member is silently dropped

That seems irrelevant of this test anyway as its purpose is to test for
a segfault, the exact output isn't of importance
Merged pull request #274
Add a testcase for PHP-609

Seems to be working fine.
Merged pull request #276
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

Conflicts:
	gridfs.c