From: Michael M Slusarz Date: Tue, 11 May 2010 05:40:39 +0000 (-0600) Subject: Catch more exceptions in test script, and report exception error, if possible X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=d32b9ee55542094fd301218374728db7d526efce;p=horde.git Catch more exceptions in test script, and report exception error, if possible --- diff --git a/horde/test.php b/horde/test.php index 84cf72559..f590b2424 100644 --- a/horde/test.php +++ b/horde/test.php @@ -43,10 +43,10 @@ if (!file_exists(dirname(__FILE__) . '/config/registry.php')) { require_once dirname(__FILE__) . '/lib/Application.php'; try { Horde_Registry::appInit('horde', array('authentication' => 'none')); - $is_init = true; -} catch (Horde_Exception $e) { + $init_exception = null; +} catch (Exception $e) { define('HORDE_TEMPLATES', dirname(__FILE__) . '/templates'); - $is_init = false; + $init_exception = $e; } if (!empty($conf['testdisable'])) { @@ -133,16 +133,23 @@ if ($app == 'horde') { @@ -190,7 +197,7 @@ if ($config_output = $test_ob->requiredFileCheck()) {

PHP Sessions