/** * Destructor to free global memory resources associated with * this data object when it's unset or goes out of scope. * DB_DataObject doesn't do this yet by itself. */ function __destruct() { $this->free(); if (method_exists('DB_DataObject', '__destruct')) { parent::__destruct(); } }