Ejemplo n.º 1
0
 /**
  * @brief Free a connection when the instance count hits zero.
  *
  * @param Databasedriver $connection The connection to free
  */
 public static function freePooledConnection(DatabaseDriver $connection)
 {
     $pi = $connection->getPoolIdentity();
     self::$pool[$pi]['count']--;
     if (self::$pool[$pi]['count'] == 0) {
         unset(self::$pool[$pi]);
     }
 }