We only attach this info in one or two highly specific failure cases..
I'd rather want to do it in more generic way.

Also, if we attach the php_stream* people could fread() and ftruncate() and what not on it.. which we don't really support at the moment, so they'll get unfiltered connection to mongod which will lead to all sorts of scary things..

I do plan on exposing the raw stream in the "near future" as it would be really cool for example gridfs (scandir("mongodb+gridfs://..../collection")) but I don't think we should do that right now.

As for exposing the fd on normal sockets - what exactly is the usecase for that?