Fix replicaset failover tests (server hash format change)
Merge branch 'v1.4'
Rename "resource" to "zmongoclient".
Fixed PHP-714: Convenience macro for getting mongoclient*.
Fixed PHP-815: MongoCursor ctor doesn't validate the MongoClient object.
Merged pull request #465
Fixed PHP-813: IS_SCALAR_*() doesn't account for resources.
Merged pull request #466
Fixed PHP-816: MongoCursor doesn't validate the namespace
Merge branch 'v1.4'
Merged pull request #462
Fix test for PHP-815.

It started failing because the fix for PHP-816 introduced an extra check on the
ns parameter which this test has wrong.
Merged pull request #468
Make those tests more robust

My local config has mongo.native_long set to 1.
Merged pull request #470
Fixed PHP-846: Unix Domain Sockets no longer work
Rename filename and title of the test as per PR review
Merged Pull Request #472

* pull-request/472:
  Rename filename and title of the test as per PR review
  Fixed PHP-846: Unix Domain Sockets no longer work
Merge branch 'v1.4'

* v1.4:
  Rename filename and title of the test as per PR review
  Fixed PHP-846: Unix Domain Sockets no longer work
Fixed PHP-809: Deprecate use of "safe" all over collection.c.

We only have to check and warn for the old "safe" in is_gle_op, but not again
in append_getlasterror as then it would always just show up twice.

I've changed all the "safe" to "w" in the tests, even in places where due to
MongoClient this isn't necessary and they instead can be removed. However, I
found that out of the scope of this PR and it's probably better to be implicit
about them anyway.