From 3fd6b9d474bdc22a82cb5a2c0d9578632a73f988 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Mon, 18 Apr 2011 17:55:38 -0400 Subject: [PATCH] capture some info if serialization fails on stomp frame --- lib/stompqueuemanager.php | 7 +++++++ 1 file changed, 7 insertions(+) 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']; -- 2.39.5