From: Michael M Slusarz Date: Wed, 30 Jun 2010 20:31:40 +0000 (-0600) Subject: Horde_Registry should never be serialized. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=182c2abfa25d3cdc6c6a23a3771a6886dcdcde7e;p=horde.git Horde_Registry should never be serialized. --- 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()