Fixed Php 617: better error codes and messages

Not much to explain, except that I have changed the notion that an empty option
name or value is not an error.  The spec at
https://wiki.10gen.com/display/10GEN/Connection+String+Format doesn't define
any such options, nor makes comments about this.