From 182c2abfa25d3cdc6c6a23a3771a6886dcdcde7e Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Wed, 30 Jun 2010 14:31:40 -0600 Subject: [PATCH] Horde_Registry should never be serialized. --- framework/Core/lib/Horde/Registry.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/framework/Core/lib/Horde/Registry.php b/framework/Core/lib/Horde/Registry.php index ca1f102a5..b6e7007e2 100644 --- a/framework/Core/lib/Horde/Registry.php +++ b/framework/Core/lib/Horde/Registry.php @@ -422,6 +422,16 @@ class Horde_Registry } /** + * serialize() should never be called on this object. If it is, die. + * + * @throws Horde_Exception + */ + public function __sleep() + { + throw new Horde_Exception('Horde_Registry objects should never be serialized.'); + } + + /** * Clear the registry cache. */ public function clearCache() -- 2.11.0