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