summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrion Vibber <brion@pobox.com>2009-12-11 14:19:18 -0800
committerBrion Vibber <brion@pobox.com>2009-12-11 14:19:18 -0800
commit727357695e2faef8a30602808cd6a11f9047fdd3 (patch)
tree31feda0714faed579f3efc9a241f847f36a354d8
parent75b11527c7efb1d3d9c7d53b99d80480ce06a9f5 (diff)
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.
-rw-r--r--classes/Memcached_DataObject.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/classes/Memcached_DataObject.php b/classes/Memcached_DataObject.php
index 753fe954e..644b84d5c 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);
}