From 6cb33f771ef015d07f6b762d688d9a10e8ad572a Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Wed, 14 Oct 2009 11:00:26 -0600 Subject: [PATCH] Fix storing IMP_Compose in session on shutdown --- imp/lib/Compose.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/imp/lib/Compose.php b/imp/lib/Compose.php index 0013641df..d6ae9b5f2 100644 --- a/imp/lib/Compose.php +++ b/imp/lib/Compose.php @@ -119,6 +119,14 @@ class IMP_Compose protected function __construct($cacheid) { $this->_cacheid = $cacheid; + $this->__wakeup(); + } + + /** + * Code to run on unserialize(). + */ + public function __wakeup() + { register_shutdown_function(array($this, 'shutdown')); } -- 2.11.0