当前位置: 首页 > 后端技术 > PHP

SplFileObject--seek返回行数错误

时间:2023-03-30 01:10:05 PHP

后台版本:php<8.0.1SplFileObject::seek参数为1时返回第三行数据(0为第一行)这是PHP的bug.第一个解决方案解决方案https://www.php.net/manual/en...https://3v4l.org/O89dJ第二个解决方案https://bugs.php.net/bug.php?...