From e21be6d66f537c5a819244dde7690a156098a0f3 Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Fri, 2 Apr 2010 15:38:54 -0600 Subject: [PATCH] Fix registry logging events on shutdown --- framework/Core/lib/Horde.php | 1 - framework/Core/lib/Horde/Registry.php | 4 +++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/framework/Core/lib/Horde.php b/framework/Core/lib/Horde.php index 169f5faea..f1f505edf 100644 --- a/framework/Core/lib/Horde.php +++ b/framework/Core/lib/Horde.php @@ -73,7 +73,6 @@ class Horde * * @param mixed $error Either a string or an object with a getMessage() * method (e.g. PEAR_Error, Exception). - * @todo Better Exception handling * @param integer $file The file in which the error occured. * @param integer $line The line on which the error occured. * @param boolean $log Log this message via logMessage()? diff --git a/framework/Core/lib/Horde/Registry.php b/framework/Core/lib/Horde/Registry.php index 5a5cd2575..26634e3e4 100644 --- a/framework/Core/lib/Horde/Registry.php +++ b/framework/Core/lib/Horde/Registry.php @@ -368,12 +368,14 @@ class Horde_Registry } else { $GLOBALS['notification']->attach('status'); } + + register_shutdown_function(array($this, 'shutdown')); } /** * Events to do on shutdown. */ - public function __destruct() + public function shutdown() { /* Register access key logger for translators. */ if (!empty($GLOBALS['conf']['log_accesskeys'])) { -- 2.11.0