acquia / acquia-sdk-php

The Acquia SDK for PHP allows developers to build applications on top of Acquia services.
MIT License
25 stars 20 forks source link

Validate that all variables are present when generating the DSN #27

Closed cpliakas closed 10 years ago

cpliakas commented 10 years ago

Via @jfarrell: In the Database component, we should be a little more defensive than usual and check that the variables are set prior to generating the string. This will prevent malformed connection strings and will allow developers to catch errors on the off chance that the server returns malformed data.