Fixed PHP-906: Segfault in mongo_deregister_callback_from_connection
Fix couple of skipifs when only running a ReplicaSet
Merge Pull Request #536

* bjori-fix-skipifs:
  Fix couple of skipifs when only running a ReplicaSet
Remove double assignment (its assigned after the ns validation)
Remove unused (and broken) function

Can result in a null pointer dereference as it
doesn't check the return value from bson_next()
Make static analyzers happy.. cursor_id and int64_id will never both be set

But thats not something a static analyzer understands
Make sure we have a command
Since we know the string length, use it
No need to reset something that wasn't set
Fix a memory leak when one of the servers is blacklisted
Merge pull request #537 from bjori/fix-test-memleaks

Fix compiler and build-scan warnings

* bjori/fix-test-memleaks:
  Fix a memory leak when one of the servers is blacklisted
  No need to reset something that wasn't set
  Since we know the string length, use it
  Make sure we have a command
  Make static analyzers happy.. cursor_id and int64_id will never both be set
  Remove unused (and broken) function
  Remove double assignment (its assigned after the ns validation)
Use dbname() and tiny ws changes as requested as requested as requested as requested
Merge pull request #538 from bjori/PHP-906-mongo_deregister_callback_from_connection

Fixed PHP-906: Segfault in mongo_deregister_callback_from_connection

* bjori/PHP-906-mongo_deregister_callback_from_connection:
  Use dbname() and tiny ws changes as requested as requested as requested as requested
  Fixed PHP-906: Segfault in mongo_deregister_callback_from_connection
Merge branch 'v1.4'

* v1.4:
  Use dbname() and tiny ws changes as requested as requested as requested as requested
  Fixed PHP-906: Segfault in mongo_deregister_callback_from_connection
PHP-820: MONGO_METHOD cleanup: Split out MongoDB::selectCollection into a C-function.
Use php_mongodb_selectcollection for MongoDB::__get().
Use php_mongodb_selectcollection for MongoDB::createCollection().
Use php_mongodb_selectcollection for MongoDB::dropCollection().
Use php_mongodb_selectcollection for MongoDB::listCollections()/getCollectionNames()
Use php_mongodb_selectcollection for MongoCollection::get().