/** * destructor */ public function __destruct() { //~ free ResultSet if (isset($this->resultSet) && $this->resultSet instanceof DbResult) { $this->resultSet->free(); } //~ close the opened connection(no effect to mysql_pconnect) $this->close(); }