You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4php-dev@logging.apache.org by "Ivan Habunek (JIRA)" <ji...@apache.org> on 2011/01/12 22:08:52 UTC
[jira] Resolved: (LOG4PHP-133) PDO appender doesn't close
connections
[ https://issues.apache.org/jira/browse/LOG4PHP-133?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ivan Habunek resolved LOG4PHP-133.
----------------------------------
Resolution: Fixed
Committed in revision 1058319.
Took 6 minutes. Had to update changes.xml.
> 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
> Assignee: Ivan Habunek
> Priority: Blocker
> Fix For: 2.1
>
> Original Estimate: 0.02h
> Remaining Estimate: 0.02h
>
> 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.