public function startup()
    {
        if ($this->param('host')) {
            $this->_host = $this->param('host');
        }
        if ($this->param('port')) {
            $this->_port = (int)$this->param('port');
        }
        if ($this->param('document_root')) {
            $this->_documentRoot = $this->param('document_root');
        }
        if ($this->param('ini_path')) {
            $this->_iniPath = $this->param('ini_path');
        }

        // For Windows
        if (substr($this->_documentRoot, -1, 1) === DIRECTORY_SEPARATOR) {
            $this->_documentRoot = substr($this->_documentRoot, 0, strlen($this->_documentRoot) - 1);
        }
        if (preg_match("/^([a-z]:)[\\\]+(.+)$/i", $this->_documentRoot, $m)) {
            $this->_documentRoot = $m[1] . '\\' . $m[2];
        }

        $this->_iniPath = rtrim($this->_iniPath, DIRECTORY_SEPARATOR);
        if (preg_match("/^([a-z]:)[\\\]+(.+)$/i", $this->_iniPath, $m)) {
            $this->_iniPath = $m[1] . '\\' . $m[2];
        }

        parent::startup();
    }