<?php

// production
// error_reporting(E_ALL & ~E_DEPRECATED & ~E_STRICT & ~E_USER_DEPRECATED);

// development
error_reporting(E_ALL);

ini_set('display_errors', 1);

require_once __DIR__.'/../autoload.php';
chdir(dirname(__DIR__));

eCampApp::RegisterErrorHandler();
eCampApp::Run();

<?php

if ('prod' === getenv('env')) {
    // production
    ini_set('display_errors', 0);
    ini_set('log_errors', 1);
    ini_set('error_log', __DIR__.'/../data/error_log');
} else {
    // development
    error_reporting(E_ALL);
    ini_set('display_errors', 1);
}

require_once __DIR__.'/../autoload.php';
chdir(dirname(__DIR__));

eCampApp::RegisterErrorHandler();
eCampApp::Run();

Configure error reporting differently for development and production
Configure error reporting differently for development and production
