Uploaded image for project: 'Log4php'
  1. Log4php
  2. LOG4PHP-133

PDO appender doesn't close connections

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 2.0.0
    • 2.1.0
    • Code
    • None
    • Any

    Description

      LogAppenderPDO::close() resets non-existent $db instead of $this->db:

      public function close()
      {
      if ($this->closed != true)
      {
      if ($this->db !== null)

      { $db = null; }

      $this->closed = true;
      }
      }

      In a busy app the bug results in thousands of DB connections that may even cause server crash.

      Attachments

        Activity

          People

            juice Ivan Habunek
            infozone Dmitry Katemirov
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 1m
                1m
                Remaining:
                Remaining Estimate - 1m
                1m
                Logged:
                Time Spent - Not Specified
                Not Specified

                Slack

                  Issue deployment