"Deprecation Notice" 在 Centos 7 上的 phpMyAdmin 中

"Deprecation Notice" in phpMyAdmin on Centos 7

我在 VPS 中安装了 phpMyadmin,但我有很多弃用通知,例如:

1) ./libraries/Util.class.php#1994 中的弃用通知。带花括号的数组和字符串偏移量访问语法已弃用

2) ./libraries/common.inc.php#261 中的弃用通知。函数 get_magic_quotes_gpc() 已弃用

3) ./libraries/url_generating.lib.php#239 中的弃用通知。带花括号的数组和字符串偏移量访问语法已弃用

4) ./libraries/DatabaseInterface.class.php#537 中的弃用通知。未加括号的 a ? b : c ? d : e 已弃用。使用 (a ? b : c) ? d : ea ? b : (c ? d : e)

我有:

CentOS 7.7 PHP7.4.3 5.5.64

我该如何解决这个问题?每次加载页面或执行操作时它们都会出现)。

您 运行 phpMyAdmin 是什么版本? php 似乎与 php7.4

存在兼容性问题

我建议将 phpMyAdmin 更新到与 php7.4 兼容的最新版本。

https://www.phpmyadmin.net/news/2020/1/8/phpmyadmin-494-and-501-are-released/

或者 - 我不提倡在生产环境中这样做 - 您可以禁止显示已弃用的消息。例如,您可以将 php.ini 中的错误报告设置更改为:

error_reporting = E_ALL ^ E_DEPRECATED

编辑以下文件:config.inc.php。它可以位于 /etc/phpmyadmin/config.inc.php/usr/share/phpmyadmin/config.inc.php

/**
 * Whether or not to query the user before sending the error report to
 * the phpMyAdmin team when a JavaScript error occurs
 *
 * Available options
 * ('ask' | 'always' | 'never')
 * default = 'ask'
 */

$cfg['SendErrorReports'] = 'never';