Try with public.
authorJan Schneider <jan@horde.org>
Mon, 17 Aug 2009 14:43:04 +0000 (16:43 +0200)
committerJan Schneider <jan@horde.org>
Mon, 17 Aug 2009 14:43:04 +0000 (16:43 +0200)
framework/Cli/lib/Horde/Cli.php

index 4a9c861..875b74c 100644 (file)
@@ -184,7 +184,7 @@ class Horde_Cli
 
         // We really want to call this at the end of the script, not in the
         // destructor.
-        register_shutdown_function(array($this, '_shutdown'));
+        register_shutdown_function(array($this, 'shutdown'));
     }
 
     /**
@@ -484,7 +484,7 @@ class Horde_Cli
     /**
      * Destroys any session on script end.
      */
-    private function _shutdown()
+    public function shutdown()
     {
         @session_destroy();
     }