Beispiel #1
0
 /**
  * Setup autoload and error handling.
  */
 function __construct()
 {
     parent::__construct();
     spl_autoload_register(array($this, 'handleAutoload'));
     set_exception_handler(array($this, 'handleException'));
     set_error_handler(array($this, 'handleError'));
     date_default_timezone_set('UTC');
     if (version_compare(PHP_VERSION, '5.3.0', '<')) {
         set_magic_quotes_runtime(0);
     }
     ini_set('auto_detect_line_endings', 1);
     $this->willUse(new T_Exception_Handler());
     // single exception handler
 }