Guys, dont you think that not all projects would have same env. variables ? I mean cmon, this stuff should be configurable to use it right out the box. It also won't help if I will override 'Application' class.
switch (APPLICATION_ENV) {
case Application::ENV_PRODUCTION:
case Application::ENV_STAGING:
default:
ini_set('display_errors', 0);
error_reporting(0);
break;
case Application::ENV_TEST:
case Application::ENV_DEVELOPMENT:
ini_set('display_errors', 1);
error_reporting(-1);
break;
}