Fixed PHP-1111: MongoClient constructor crashes on connection to slave.