Doctrine DBAL
  1. Doctrine DBAL
  2. DBAL-928

[GH-623] Prevent Connection from maintaining a second reference to an injected PDO object.

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.5
    • Component/s: None
    • Security Level: All
    • Labels:
      None

      Description

      This issue is created automatically through a Github pull request on behalf of jgallred:

      Url: https://github.com/doctrine/dbal/pull/623

      Message:

      Previously, if a developer explicitly closed the Connection, only the _conn reference was destroyed, but the _params['pdo'] reference remained and kept the PDO connection alive. By unsetting the _params reference, we maintain only the _conn reference, exactly as if the PDO connection is generated internally.

        Activity

        Show
        Marco Pivetta added a comment - Merged: https://github.com/doctrine/dbal/commit/cf35f1930edc00b264b06f04d9e1f616cc440581

          People

          • Assignee:
            Marco Pivetta
            Reporter:
            Doctrine Bot
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: