We need to wrap session_destroy() to avoid warnings if no session has been started.
authorJan Schneider <jan@horde.org>
Sat, 15 Aug 2009 08:26:05 +0000 (10:26 +0200)
committerJan Schneider <jan@horde.org>
Sat, 15 Aug 2009 08:26:05 +0000 (10:26 +0200)
framework/Cli/lib/Horde/Cli.php

index bdd8324..0d1c269 100644 (file)
@@ -182,7 +182,7 @@ class Horde_Cli
             $this->_red_end = $this->_green_end = $this->_yellow_end = $this->_blue_end = '</span>';
         }
 
-        register_shutdown_function('session_destroy');
+        register_shutdown_function(array($this, '_shutdown'));
     }
 
     /**