From 7137a9dd9b8e7ae0e483014b23e144425cbde30f Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Mon, 17 Aug 2009 16:34:14 +0200 Subject: [PATCH] Add explanation. --- framework/Cli/lib/Horde/Cli.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/framework/Cli/lib/Horde/Cli.php b/framework/Cli/lib/Horde/Cli.php index 470a96a36..4a9c861c1 100644 --- a/framework/Cli/lib/Horde/Cli.php +++ b/framework/Cli/lib/Horde/Cli.php @@ -182,6 +182,8 @@ class Horde_Cli $this->_red_end = $this->_green_end = $this->_yellow_end = $this->_blue_end = ''; } + // We really want to call this at the end of the script, not in the + // destructor. register_shutdown_function(array($this, '_shutdown')); } -- 2.11.0