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
Merged pull request #271
Fixed PHP-672: MongoGridFSFile::write() leaks memory

return_value seems to have been just a handy variable to use here, but
its really confusing as its later overwritten with a long, without
freeing the previously assigned data.
Using a real temp variable fixes the leak
Add test for PHP-672
Fixed test title.
Merged pull request #275
Fixed PHP-385: GridFS::storeFile with a string argument for 2Gb files

ftell() returns long, not int :)
Don't really want to make a 2gb testfile for this and creating one
on-the-fly would be really annoying and unexpected memory usage and
requirement from the test suite