1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00
Files
archived-php-src/ext/spl/tests/SplFileObject/bug46569.phpt
2024-09-13 15:07:26 +01:00

16 lines
279 B
PHP

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