在 PHP7 下出现这个警告,修复方法是,找到 phpmyadmin 的安装目录(Ubuntu 下在 /usr/share/phpmyadmin/),修改文件:libraries/DisplayResults.class.php
在 854 行:
// Move to the next page or to the last one
$endpos = $_SESSION['tmpval']['pos']
+ $_SESSION['tmpval']['max_rows'];
修改为:
// Move to the next page or to the last one
$endpos = (int)$_SESSION['tmpval']['pos']
+ (int)$_SESSION['tmpval']['max_rows'];