Christoph M. Becker
f1d11c118d
Fix #62004 : SplFileObject: fgets after seek returns wrong line
...
As it is, `::seek(0)` sets the file pointer to the beginning of the
file, but `::seek($n)` where `$n > 0` sets the file pointer to the
beginning of the following line, having line `$n` already read into the
line buffer. This is pretty inconsistent; we fix it by always seeking
to the beginning of the line.
We also add a test case for the duplicate bug #46569 .
Closes GH-6434.
2020-11-30 16:03:37 +01:00
..
2020-11-30 16:03:37 +01:00
2020-09-03 14:23:18 +02:00
2020-10-07 12:26:46 +02:00
2020-09-04 14:23:14 +02:00
2020-06-10 09:41:58 +02:00
2020-10-07 12:26:46 +02:00
2020-10-07 12:26:46 +02:00
2020-10-22 15:20:43 +02:00
2019-09-25 14:51:43 +02:00
2020-10-07 12:26:46 +02:00
2020-10-07 12:26:46 +02:00
2020-11-30 16:03:37 +01:00
2019-09-25 14:51:43 +02:00
2020-10-07 12:26:46 +02:00
2020-10-07 12:26:46 +02:00
2020-09-15 12:49:59 +02:00
2019-09-25 14:51:43 +02:00
2020-10-07 12:26:46 +02:00
2020-08-27 14:53:56 +02:00
2020-07-23 16:00:12 +02:00
2019-09-25 14:51:43 +02:00
2019-09-25 14:51:43 +02:00
2020-10-07 12:26:46 +02:00
2020-09-27 12:25:02 -06:00
2019-09-25 14:51:43 +02:00
2020-10-07 12:26:46 +02:00
2020-06-07 10:41:11 +02:00
2020-04-25 23:54:56 +02:00
2020-09-21 10:08:45 +02:00
2020-09-15 12:49:59 +02:00
2019-09-25 14:51:43 +02:00
2020-09-21 10:08:45 +02:00
2020-10-07 12:26:46 +02:00
2020-10-01 16:18:23 +02:00
2020-03-02 15:25:32 +01:00
2020-10-07 12:26:46 +02:00
2020-10-07 12:26:46 +02:00
2020-09-04 14:32:34 +02:00
2019-09-25 14:51:43 +02:00
2020-10-07 12:26:46 +02:00