From: Brion Vibber Date: Wed, 30 Dec 2009 23:55:15 +0000 (-0800) Subject: subbug debug info to check on free ordering X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=9218cce3cdc824e2011bcdf250a08ca1698f5ea1;p=quix0rs-gnu-social.git subbug debug info to check on free ordering --- diff --git a/classes/Memcached_DataObject.php b/classes/Memcached_DataObject.php index d8b0db5a69..4efec06abe 100644 --- a/classes/Memcached_DataObject.php +++ b/classes/Memcached_DataObject.php @@ -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) {