gajus / gajus/doll

Validate driver options

Open
#9 0 comments 0 reactions 1 assignee View on GitHub

@gajus is already working on this.

Since May 5, 2014.

enhancement
Dominant language
PHP
Stars
34
Forks
7
PR merge metrics
No merged PRs in 30d

Description

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();

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.