Fixes #4507 - PDO driver type needs to be lowercased.
Merge pull request #24 from ThePixelDeveloper/patch/4507

Fixes #4507 - PDO driver type needs to be lowercased.
run type through strtolower in if statement as well (refs #4507)
infinite loop errors fixed (cherry-picked from 3.3 refs #4706)
Merge branch '3.2/develop' into 3.3/develop