]> git.rkrishnan.org Git - .emacs.d.git/blob - emacs/nxhtml/tests/in/bug354363-index.php
submodulized .emacs.d setup
[.emacs.d.git] / emacs / nxhtml / tests / in / bug354363-index.php
1 <?php
2         define('APPLICATION_PATH', realpath(dirname(__FILE__) . '/../application/'));
3 set_include_path(
4                  APPLICATION_PATH . '/../library'
5                  . PATH_SEPARATOR . get_include_path()
6                  );
7
8 if(true){
9          echo 'test';
10          }
11 else
12   {
13    
14    }
15
16 require_once "Zend/Loader.php";
17 Zend_Loader::registerAutoload();
18
19 try 
20 {
21  require '../application/bootstrap.php';
22  }
23 catch(Exception $exception)
24 {
25  echo '<html><body><center>'
26  .    'An exception occured while bootstrapping the application.';
27  if(defined('APPLICATION_ENVIRONMENT')
28     && APPLICATION_ENVIRONMENT != 'production'
29     ) {
30        echo '<br /><br />' . $exception->getMessage() . '<br />'
31        .    '<div align="left">Stack Trace:'
32        .    '<pre>' . $exception->getTraceAsString() . '</pre></div>';
33        }
34  echo '</center><body></html>';
35  exit(1);
36  }
37
38 Zend_Controller_Front::getInstance()->dispatch();