src/Core/CoreKernel.php
protected function bootPHP()
    {
        if ($this->getEnvironment() === self::LIVE) {
            // limited to fatal errors and warnings in live mode
            error_reporting(E_ALL & ~(E_DEPRECATED | E_STRICT | E_NOTICE));
        } else {
            // Report all errors in dev / test mode
            error_reporting(E_ALL | E_STRICT);
        }

        /**
         * Ensure we have enough memory
         */
        Environment::increaseMemoryLimitTo('64M');

        // Ensure we don't run into xdebug's fairly conservative infinite recursion protection limit
        if (function_exists('xdebug_enable')) {
            $current = ini_get('xdebug.max_nesting_level');
            if ((int)$current < 200) {
                ini_set('xdebug.max_nesting_level', 200);
            }
        }

        /**
         * Set default encoding
         */
        mb_http_output('UTF-8');
        mb_internal_encoding('UTF-8');
        mb_regex_encoding('UTF-8');

        /**
         * Enable better garbage collection
         */
        gc_enable();
    }
protected function bootPHP()
    {
        if ($this->getEnvironment() === self::LIVE) {
            // limited to fatal errors and warnings in live mode
            error_reporting(E_ALL & ~(E_DEPRECATED | E_STRICT | E_NOTICE));
        } else {
            // Report all errors in dev / test mode
            error_reporting(E_ALL | E_STRICT);
        }

        /**
         * Ensure we have enough memory
         */
        Environment::increaseMemoryLimitTo('64M');

        // Ensure we don't run into xdebug's fairly conservative infinite recursion protection limit
        if (function_exists('xdebug_enable')) {
            $current = ini_get('xdebug.max_nesting_level');
            if ((int)$current < 200) {
                ini_set('xdebug.max_nesting_level', 200);
            }
        }

        /**
         * Set default encoding
         */
        mb_http_output('UTF-8');
        mb_internal_encoding('UTF-8');
        mb_regex_encoding('UTF-8');

        /**
         * Enable better garbage collection
         */
        gc_enable();
    }
protected function bootPHP ( ) { if ( $ this -> getEnvironment ( ) === self :: LIVE ) { // limited to fatal errors and warnings in live mode error_reporting ( E_ALL & ~ ( E_DEPRECATED | E_STRICT | E_NOTICE ) ) ; } else { // Report all errors in dev / test mode error_reporting ( E_ALL | E_STRICT ) ; } /**
         * Ensure we have enough memory
         */ Environment :: increaseMemoryLimitTo ( '64M' ) ; // Ensure we don't run into xdebug's fairly conservative infinite recursion protection limit if ( function_exists ( 'xdebug_enable' ) ) { $ current = ini_get ( 'xdebug.max_nesting_level' ) ; if ( ( int ) $ current < 200 ) { ini_set ( 'xdebug.max_nesting_level' , 200 ) ; } } /**
         * Set default encoding
         */ mb_http_output ( 'UTF-8' ) ; mb_internal_encoding ( 'UTF-8' ) ; mb_regex_encoding ( 'UTF-8' ) ; /**
         * Enable better garbage collection
         */ gc_enable ( ) ; }
Initialise PHP with default variables
Initialise PHP with default variables