doll icon indicating copy to clipboard operation
doll copied to clipboard

Validate driver options

Open gajus opened this issue 11 years ago • 0 comments

Doll implementation uses delayed initialisation, which in effect does not allow to catch invalid driver attributes before the database connection is established. This might prove a trouble. If it does, then use ReflectionClass to make sure that driver attributes are valid at the time of instantiating Doll instance:

$pdo_reflecation = new \ReflectionClass('PDO');
$pdo_reflecation->getConstants();

gajus avatar May 05 '14 20:05 gajus