我在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 : e
或a ? b : (c ? d : e)
我有:
CentOS 7.7PHP 7.4.35.5.64
我该如何解决这个问题?,它们在每次加载页面或执行动作时显示(。
您正在运行哪个版本的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
编辑以下文件:config.inc.php。它可以位于/etc/phpmyadmin/config.inc.php或/usr/share/phpmyadmin/conconfig.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';