ini_set('display_errors', $sf_debug ? 'on' : 'off'); error_reporting(sfConfig::get('sf_error_reporting')); // create bootstrap file for next time if (!sfConfig::get('sf_in_bootstrap') && !$sf_debug && !sfConfig::get('sf_test')) { $configCache->checkConfig($sf_app_config_dir_name . '/bootstrap_compile.yml'); } // required core classes for the framework // create a temp var to avoid substitution during compilation if (!$sf_debug && !sfConfig::get('sf_test')) { $core_classes = $sf_app_config_dir_name . '/core_compile.yml'; $configCache->import($core_classes, false); } $configCache->import($sf_app_config_dir_name . '/php.yml', false); $configCache->import($sf_app_config_dir_name . '/routing.yml', false); // include all config.php from plugins sfLoader::loadPluginConfig(); // compress output ob_start(sfConfig::get('sf_compressed') ? 'ob_gzhandler' : ''); } catch (sfException $e) { $e->printStackTrace(); } catch (Exception $e) { if (sfConfig::get('sf_test')) { throw $e; } try { // wrap non symfony exceptions $sfException = new sfException(); $sfException->printStackTrace($e); } catch (Exception $e) { header('HTTP/1.0 500 Internal Server Error'); }