subbug debug info to check on free ordering

This commit is contained in:
Brion Vibber 2009-12-30 15:55:15 -08:00
parent 45dc24689d
commit 9218cce3cd

View File

@ -31,11 +31,20 @@ class Memcached_DataObject extends DB_DataObject
function __destruct()
{
if (get_class($this) == 'Profile')
common_log(LOG_INFO, 'subbug: destructing result id ' . $this->_DB_resultid);
$this->free();
if (method_exists('DB_DataObject', '__destruct')) {
parent::__destruct();
}
}
function free()
{
if (get_class($this) == 'Profile')
common_log(LOG_INFO, 'subbug: freeing result id ' . $this->_DB_resultid);
parent::free();
}
function &staticGet($cls, $k, $v=null)
{