/** * Entry point * @param int options bitmask */ public static function bootstrap($options = array()) { self::$_options = $options; // debug ini_set('display_errors', 'on'); error_reporting(E_ALL); // chained in core::init0 if (!self::_option(self::OPTION_TESTING) && !loader::$_debug) { set_error_handler(create_function('$x, $y', 'if (0 != ini_get("error_reporting")) throw new Exception($y, $x);'), E_ALL & ~E_NOTICE & ~E_STRICT & ~E_WARNING); } self::$_debug = (int) self::_option(self::OPTION_DEBUG); // // boot up // static::_bootstrap(); }