Re: search CVS file (perharps a bug)

From: Date: Mon, 02 May 2005 10:12:53 +0000
Subject: Re: search CVS file (perharps a bug)
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-37472@lists.php.net to get a copy of this message
Hi Laurent Laville, you wrote: > Hi, > > As i'm not sure if it's a bug a not (perharps i don't use the > PEAR::File package well) tell me if i'm wrong or if i should open > a bug entry ? > > Well, recently i've downloaded and used the File-1.2.0 package > version to read and search data inside a cvs file. > $conf = array('fields' => 3, 'sep' => ';', 'crlf' > => '\r\n'); CRLF probably needs to be enclosed by double quotes like "\r\n". > First attempt [1] gave the good result, but second attempt gave > an empty array. The File::close() method seems not to close the > file. File pointer keep the last position and a new search try > give a wrong result. This sounds like a bug, I'll have a look. Thanks, -- Michael - < mike(@)php.net >

Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc
« previous php.pear.dev (#37472) next »