note 123625 added to splfileobject.fgetcsv

From: Date: Mon, 18 Feb 2019 11:31:13 +0000
Subject: note 123625 added to splfileobject.fgetcsv
Groups: php.notes 
Request: Send a blank email to php-notes+get-210260@lists.php.net to get a copy of this message
Be aware. There is bug 46569 persists that breaks usage of SplFileObject::fgetcsv() after SplFileObject::seek()-ing to a non-zero position and then returns the contents of wrong line - off by one <?php $file = new SplFileObject('foo/bar.csv'); $file->seek(1); print_r($file->fgetcsv()); // reads 3rd line against 2nd ---- Server IP: 208.43.231.9 Probable Submitter: 185.85.3.142 (proxied: 213.160.135.182) ---- Manual Page -- http://php.net/manual/en/splfileobject.fgetcsv.php Edit -- https://master.php.net/note/edit/123625 Del: integrated -- https://master.php.net/note/delete/123625/integrated Del: useless -- https://master.php.net/note/delete/123625/useless Del: bad code -- https://master.php.net/note/delete/123625/bad+code Del: spam -- https://master.php.net/note/delete/123625/spam Del: non-english -- https://master.php.net/note/delete/123625/non-english Del: in docs -- https://master.php.net/note/delete/123625/in+docs Del: other reasons-- https://master.php.net/note/delete/123625 Reject -- https://master.php.net/note/reject/123625 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#210260) next »