1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 16:22:37 +01:00
Files
archived-php-src/ext/spl/tests/SplFileObject/bug46569.phpt
2022-05-27 18:33:48 +01:00

15 lines
245 B
PHP

--TEST--
Bug #46569 (SplFileObject: fgetcsv after seek returns wrong line)
--FILE--
<?php
$file = new SplFileObject(__DIR__ . '/bug46569.csv');
$file->seek(1);
print_r($file->fgetcsv());
?>
--EXPECT--
Array
(
[0] => second
[1] => line
)