xref: /PHP-8.0/ext/spl/tests/bug46569.phpt (revision f1d11c11)
1--TEST--
2Bug #46569 (SplFileObject: fgetcsv after seek returns wrong line)
3--FILE--
4<?php
5$file = new SplFileObject(__DIR__ . '/bug46569.csv');
6$file->seek(1);
7print_r($file->fgetcsv());
8?>
9--EXPECT--
10Array
11(
12    [0] => second
13    [1] => line
14)
15