From: Brion Vibber Date: Fri, 11 Dec 2009 22:19:18 +0000 (-0800) Subject: Debug check to track down live error -- wrong data type sometimes being sent down... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=727357695e2faef8a30602808cd6a11f9047fdd3;p=quix0rs-gnu-social.git Debug check to track down live error -- wrong data type sometimes being sent down to Memcached_DataObject::cacheKey() via various fetch functions, need a backtrace to track it down. --- diff --git a/classes/Memcached_DataObject.php b/classes/Memcached_DataObject.php index 753fe954e0..644b84d5cf 100644 --- a/classes/Memcached_DataObject.php +++ b/classes/Memcached_DataObject.php @@ -93,6 +93,11 @@ class Memcached_DataObject extends DB_DataObject } static function cacheKey($cls, $k, $v) { + if (is_object($cls) || is_object($j) || is_object($v)) { + $e = new Exception(); + common_log(LOG_ERR, __METHOD__ . ' object in param: ' . + str_replace("\n", " ", $e->getTraceAsString())); + } return common_cache_key(strtolower($cls).':'.$k.':'.$v); }