Fixed PHP-827: Segfault on connect when database name starts with an X.
Merged pull request #453
Merge branch 'v1.4'