PDO appender doesn't close connections
--------------------------------------
Key: LOG4PHP-133
URL: https://issues.apache.org/jira/browse/LOG4PHP-133
Project: Log4php
Issue Type: Bug
Components: Code
Affects Versions: 2.0
Environment: Any
Reporter: Dmitry Katemirov
Priority: Blocker
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.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.