We can't dereference dbh if it is NULL
Make sure value is initialized
Merge branch 'PHP-5.4' into PHP-5.5