尝试打开localhost/phpmyadmin时出错

尝试打开localhost/phpmyadmin时出错,php,phpmyadmin,Php,Phpmyadmin,打开http://localhost/phpmyadmin页面导致致命错误: Namespace declaration statement has to be the very first statement or after any declare call in the script in F:\xampp\phpMyAdmin\libraries\classes\DatabaseInterface.php on line 8 我试着用注释来解决这个问题,但什么也没发生 /* Loc

打开
http://localhost/phpmyadmin
页面导致致命错误:

Namespace declaration statement has to be the very first statement or after any declare call in the script in F:\xampp\phpMyAdmin\libraries\classes\DatabaseInterface.php on line 8  
我试着用注释来解决这个问题,但什么也没发生

/* Locale for messages */
       /* $locale = LanguageManager::getInstance()->getCurrentLanguage()->getMySQLLocale();
        if (! empty($locale)) {
            $this->query(
                "SET lc_messages = '" . $locale . "';",
                DatabaseInterface::CONNECT_USER,
                self::QUERY_STORE
            );
        }*/
但我犯了个错误

致命错误:命名空间声明语句必须是第一个 语句或在中的脚本中的任何declare调用之后 第8行的F:\xampp\phpMyAdmin\libraries\classes\DatabaseInterface.php


安装phpMyAdmin后,请解决此问题,并指向浏览器开始使用它。您应该能够使用您在MySQL中设置的任何用户登录。如果尚未设置任何用户,请使用不带密码的管理员登录。然后为您想要配置的Web服务器选择Apache2。

添加注释通常不会解决任何问题。。。显示DatabaseInterface的前8行。这些是代码的起始行