From: Evan Prodromou Date: Mon, 18 Apr 2011 21:55:38 +0000 (-0400) Subject: capture some info if serialization fails on stomp frame X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=3fd6b9d474bdc22a82cb5a2c0d9578632a73f988;p=quix0rs-gnu-social.git capture some info if serialization fails on stomp frame --- diff --git a/lib/stompqueuemanager.php b/lib/stompqueuemanager.php index 1d9a5ad207..45a82e240a 100644 --- a/lib/stompqueuemanager.php +++ b/lib/stompqueuemanager.php @@ -480,6 +480,13 @@ class StompQueueManager extends QueueManager { $host = $this->cons[$this->defaultIdx]->getServer(); $message = unserialize($frame->body); + + if ($message === false) { + $this->_log(LOG_ERR, "Can't unserialize frame: {$frame->body}"); + $this->stats('baditem', $queue); + return false; + } + $site = $message['site']; $queue = $message['handler'];