bootstrap.php 739 B

12345678910111213141516171819202122
  1. <?php
  2. ini_set('error_reporting', -1);
  3. ini_set('display_errors', 1);
  4. ini_set('display_startup_errors', 1);
  5. ini_set('log_errors', 0);
  6. ini_set('date.timezone', 'UTC');
  7. ini_set('max_execution_time', 0);
  8. // Define path to application directory
  9. defined('APPLICATION_PATH')
  10. || define('APPLICATION_PATH', realpath(dirname(__FILE__) . '/../application'));
  11. // Define application environment
  12. defined('APPLICATION_ENV')
  13. || define('APPLICATION_ENV', (getenv('APPLICATION_ENV') ? getenv('APPLICATION_ENV') : 'testing'));
  14. // Ensure library/ is on include_path
  15. set_include_path(realpath(dirname(__FILE__) . '/../vendor/zendframework/zendframework1/library'));
  16. require_once 'Zend/Loader/Autoloader.php';
  17. Zend_Loader_Autoloader::getInstance();