call DB_DataObject::__destruct() if it exists
This commit is contained in:
parent
945661d942
commit
22f02b35ad
|
@ -28,9 +28,13 @@ class Memcached_DataObject extends DB_DataObject
|
|||
* 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();
|
||||
}
|
||||
}
|
||||
|
||||
function &staticGet($cls, $k, $v=null)
|
||||
|
|
Loading…
Reference in New Issue
Block a user