PHP-1265: More descriptive errors for invalid db/collection names

https://jira.mongodb.org/browse/PHP-1265
I didn't see the point in using a separate name string here, since `bug00872-002.phpt` only used one.