背景

版本:php < 8.0.1
SplFileObject::seek 当参数为 1 时,却返回了第 3 行数据(0为首行)
这个是php的一个bug

第一种解决方案

https://www.php.net/manual/en...
https://3v4l.org/O89dJ

第二种解决方案

https://bugs.php.net/bug.php?...