Fixed PHP-1084: collection->update($query, $document) crashes if $document is an object
Merge pull request #685 from bjori/PHP-1084-update-with-object-crashes

Fixed PHP-1084: collection->update($query, $document) crashes if $document is an object

* bjori/PHP-1084-update-with-object-crashes:
  Fixed PHP-1084: collection->update($query, $document) crashes if $document is an object
This is testcase for PHP-1084 not PHP-1085
Fixed PHP-1085: w=0 can return an unexpected exception on failure
Merge pull request #684 from bjori/PHP-1085-w0-throws-exception

Fixed PHP-1085: w=0 can return an unexpected exception on failure

* bjori/PHP-1085-w0-throws-exception:
  Fixed PHP-1085: w=0 can return an unexpected exception on failure
Fixed PHP-922: Read timed out after reading 0 bytes, waited for 0.000000 seconds

Initialize all mongo_server_options values correctly when copying server info
Merge pull request #688 from bjori/PHP-922-timeout-after-switchdb

Fixed PHP-922: Read timed out after reading 0 bytes, waited for 0.000000seconds

* bjori/PHP-922-timeout-after-switchdb:
  Fixed PHP-922: Read timed out after reading 0 bytes, waited for 0.000000 seconds
It is current master (slated to become 5.7) that did bunch of zts changes
Merge pull request #687 from bjori/revert-pr-663

Bump version for zts, its master (PHP5.7) that introduced this change

* bjori/revert-pr-663:
  It is current master (slated to become 5.7) that did bunch of zts changes
Fixed PHP-1088: CID-10700: Explicit null dereferenced
Merge pull request #693 from bjori/PHP-1088-gridfs-coverity

Fixed PHP-1088: CID-10700: Explicit null dereferenced

* bjori/PHP-1088-gridfs-coverity:
  Fixed PHP-1088: CID-10700: Explicit null dereferenced
Fixed PHP-1090: Dereference null return value

Fixes several coverity issues around php_mongo_runcommand() retval changes
that was introduced by the fix for PHP-1036 (1831821f69d87f2ea0b7f0eb16ca8a750d4ecc85)
Merge pull request #692 from bjori/coverity-runcommand

Fixed several coverity issues around php_mongo_runcommand() retval changes

* bjori/coverity-runcommand:
  Fixed PHP-1090: Dereference null return value
Fixed PHP-1086: Inserting documents with WriteConcern during failover broken

This is already covered by tests/replicaset-failover/mongocollection-insert-001.phpt
But as the failover testscases are so slow we only run them on Jenkins which is
why this wasn't discovered earlier

We don't actually support w=-1 (ignore socket errors) so we do want to throw exception
here in all cases
Merge pull request #691 from bjori/PHP-1086-failure-with-w1-should-throw-exception

Fixed PHP-1086: Inserting documents with WriteConcern during failover br...

* bjori/PHP-1086-failure-with-w1-should-throw-exception:
  Fixed PHP-1086: Inserting documents with WriteConcern during failover broken
This is the v1.5 branch, not master
Fix branch name
Merge pull request #690 from bjori/readme-branch

Branch name fixes

* bjori/readme-branch:
  Fix branch name
  This is the v1.5 branch, not master
Fixed PHP-978: Standalone connection to arbiter fails
Improve tests by adding one for replicaset connection to arbiter node

I've removed the logs for the first connection search, as this is basically
random. The code for it (in php_mongo_connect) has as comment:

   /* We don't care about the result so although we assign it to a var, we
    * only do that to handle errors and return it so that the calling function
    * knows whether a connection could be obtained or not. */

The new test also illustrates that it works just fine connecting to the arbiter
node in replicaset connection mode.