mongodb/mongo-php-driver — pull request #244 by bjori (2012-12-07 04:04:13+00:00)
Title: Fixed PHP-631: One replica set, but two different db/user/passwords

We didn't actually filtered anything at all by credentials.
That was dropped in 496d77b907885f2f718d2e23530e0c7ff7677460 and
replaced with a replicaset name check, but missed matching the
credentials. We now check the credentials after the initial
connection filtering.