protected function _init() {
		if ($this->_config['globals']) {
			$this->_env += (array) $_SERVER + (array) $_ENV;
		}
		$this->_env['working'] = str_replace('\\', '/', getcwd()) ?: null;
		$argv = (array) $this->env('argv');
		$this->_env['script'] = array_shift($argv);
		$this->_env['PLATFORM'] = 'CLI';
		$this->argv += $argv + (array) $this->_config['args'];
		$this->input = $this->_config['input'];

		if (!is_resource($this->_config['input'])) {
			$this->input = fopen('php://stdin', 'r');
		}
		parent::_init();
	}