1--TEST--
2Bug #62004 (SplFileObject: fgets after seek returns wrong line)
3--FILE--
4<?php
5$f = new SplFileObject(__DIR__ . '/bug62004.txt');
6$f->setFlags(SplFileObject::SKIP_EMPTY);
7$f->seek(0);
8echo $f->fgets();
9$f->seek(1);
10echo $f->fgets();
11$f->seek(2);
12echo $f->fgets();
13?>
14--EXPECT--
15Line 1
16Line 2
17Line 3
18