* Do NOT use connect() again, create a new instance if needed.
*/
public function dispose() {
+ parent::dispose(); // Call parent dispose to write/close session and other common stuff before clossing conn
if ($this->adodb) {
$this->adodb->Close();
}
- parent::dispose();
}
/**
/**
* Destructor - cleans up and flushes everything needed.
*/
- public function __desctruct() {
+ public function __destruct() {
$this->dispose();
}
* Do NOT use connect() again, create a new instance if needed.
*/
public function dispose() {
+ parent::dispose(); // Call parent dispose to write/close session and other common stuff before clossing conn
if ($this->mysqli) {
$this->mysqli->close();
$this->mysqli = null;
}
- parent::dispose();
}
/**
* Do NOT use connect() again, create a new instance if needed.
*/
public function dispose() {
+ parent::dispose(); // Call parent dispose to write/close session and other common stuff before clossing conn
if ($this->oci) {
oci_close($this->oci);
$this->oci = null;
}
- parent::dispose();
}
* Do NOT use connect() again, create a new instance if needed.
*/
public function dispose() {
+ parent::dispose(); // Call parent dispose to write/close session and other common stuff before clossing conn
if ($this->pgsql) {
pg_close($this->pgsql);
$this->pgsql = null;
}
- parent::dispose();
}