I think we're overloading error codes here. php_mongo.h has 10 as:

 * 10: error getting socket

7 and 9 look wrong too? (But 6 is correct)