// Check PCRE support for Unicode properties such as \p and \X. $ER = error_reporting(0); define('PCRE_UNICODE_PROPERTIES', (bool) preg_match('/^\\pL$/u', 'ñ')); error_reporting($ER); // SERVER_UTF8 ? use mb_* functions : use non-native functions if (extension_loaded('mbstring')) { mb_internal_encoding('UTF-8'); define('SERVER_UTF8', YES); } else { define('SERVER_UTF8', NO); } // Stop environment_test Benchmark::stop(SYSTEM_BENCHMARK . '_environment_test'); // Start system_initialization Benchmark::start(SYSTEM_BENCHMARK . '_system_initialization'); // Load Event support require SYSPATH . 'classes/core/event' . EXT; // Load Eight core require SYSPATH . 'classes/core/eight' . EXT; // Prepare the environment Eight::setup(); // Prepare the system Event::run('system.ready'); // Determine routing Event::run('system.routing'); // End system_initialization Benchmark::stop(SYSTEM_BENCHMARK . '_system_initialization'); // Make the magic happens! Event::run('system.execute'); // Clean up and exit Event::run('system.shutdown');