forked from GNUsocial/gnu-social
subbug debug info to check on free ordering
This commit is contained in:
parent
45dc24689d
commit
9218cce3cd
@ -31,12 +31,21 @@ class Memcached_DataObject extends DB_DataObject
|
|||||||
|
|
||||||
function __destruct()
|
function __destruct()
|
||||||
{
|
{
|
||||||
|
if (get_class($this) == 'Profile')
|
||||||
|
common_log(LOG_INFO, 'subbug: destructing result id ' . $this->_DB_resultid);
|
||||||
$this->free();
|
$this->free();
|
||||||
if (method_exists('DB_DataObject', '__destruct')) {
|
if (method_exists('DB_DataObject', '__destruct')) {
|
||||||
parent::__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)
|
function &staticGet($cls, $k, $v=null)
|
||||||
{
|
{
|
||||||
if (is_null($v)) {
|
if (is_null($v)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user