Centos 7 上 phpMyAdmin 中的“弃用通知”

我在 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 PHP 7.4.3 5.5.64

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


翻阅古今
浏览 66回答 2
2回答

撒科打诨

您正在运行什么版本的 phpMyAdmin?php7.4 似乎存在 php 兼容性问题我建议将 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

慕神8447489

编辑以下文件: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';
打开App,查看更多内容
随时随地看视频慕课网APP