<?xml version="1.0"?>
<?xml-stylesheet
href="http://www.w3.org/2000/08/w3c-synd/style.css" type="text/css"
?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
    <channel rdf:about="http://pear.php.net/bugs/search.php">
    <title>PEAR Bug Search Results</title>
    <link>http://pear.php.net/bugs/search.php?cmd=display&amp;package_name%5B0%5D=File_CSV</link>
    <description>Search Results</description>
    <dc:language>en-us</dc:language>
    <dc:creator>pear-webmaster@lists.php.net</dc:creator>
    <dc:publisher>pear-webmaster@lists.php.net</dc:publisher>
    <admin:generatorAgent rdf:resource="http://pear.php.net/bugs"/>
    <sy:updatePeriod>hourly</sy:updatePeriod>
    <sy:updateFrequency>1</sy:updateFrequency>
    <sy:updateBase>2000-01-01T12:00+00:00</sy:updateBase>
    <items>
     <rdf:Seq>
      <rdf:li rdf:resource="http://pear.php.net/bug/19510" />
      <rdf:li rdf:resource="http://pear.php.net/bug/19255" />
      <rdf:li rdf:resource="http://pear.php.net/bug/12276" />
      <rdf:li rdf:resource="http://pear.php.net/bug/12275" />
      <rdf:li rdf:resource="http://pear.php.net/bug/7742" />
      <rdf:li rdf:resource="http://pear.php.net/bug/3935" />

     </rdf:Seq>
    </items>
  </channel>

  <image rdf:about="http://pear.php.net/gifs/pearsmall.gif">
    <title>PEAR Bugs</title>
    <url>http://pear.php.net/gifs/pearsmall.gif</url>
    <link>http://pear.php.net/bugs</link>
  </image>

    <item rdf:about="http://pear.php.net/bug/19510">
      <title>File_CSV: Feature/Change Request 19510 [Open] field escape and row terminated elements added to discoverFormat returned array</title>
      <link>http://pear.php.net/bugs/19510</link>
      <content:encoded><![CDATA[<pre>File_CSV Feature/Change Request
Reported by greywacke
2012-07-18T03:04:11+00:00
PHP: 5.3.13 OS: linux Package Version: 1.0.0

Description:
------------
I was wondering if the array returned by the discoverFormat 
method of the File_CSV class could be extended by adding the 
line terminated and escape characters as elementsâ¦

perhaps attempt discovering, and if unable to discover; or not 
found â return \ and \r\n as default?

Test script:
---------------
require_once 'File/CSV.php';
$config = File_CSV::discoverFormat(realpath('test.csv'));
print_r($config);

Expected result:
----------------
// example from test csv format discovery

Array (
	[fields] =&gt; 3
	[sep] =&gt; ,
	[quote] =&gt; &quot;
	[esc] =&gt; \
	[term] =&gt; \r\n
)

Actual result:
--------------
// current capabilities

Array (
	[fields] =&gt; 3
	[sep] =&gt; ,
	[quote] =&gt; &quot;
)</pre>]]></content:encoded>
      <description><![CDATA[<pre>File_CSV Feature/Change Request
Reported by greywacke
2012-07-18T03:04:11+00:00
PHP: 5.3.13 OS: linux Package Version: 1.0.0

Description:
------------
I was wondering if the array returned by the discoverFormat 
method of the File_CSV class could be extended by adding the 
line terminated and escape characters as elementsâ¦

perhaps attempt discovering, and if unable to discover; or not 
found â return \ and \r\n as default?

Test script:
---------------
require_once 'File/CSV.php';
$config = File_CSV::discoverFormat(realpath('test.csv'));
print_r($config);

Expected result:
----------------
// example from test csv format discovery

Array (
	[fields] =&gt; 3
	[sep] =&gt; ,
	[quote] =&gt; &quot;
	[esc] =&gt; \
	[term] =&gt; \r\n
)

Actual result:
--------------
// current capabilities

Array (
	[fields] =&gt; 3
	[sep] =&gt; ,
	[quote] =&gt; &quot;
)</pre>]]></description>
      <dc:date>2012-07-18T03:04:11+00:00</dc:date>
      <dc:creator>pierre &amp;#x61;&amp;#116; greywacke &amp;#x64;&amp;#111;&amp;#x74; co &amp;#x64;&amp;#111;&amp;#x74; za</dc:creator>
      <dc:subject>File_CSV Feature/Change Request</dc:subject>
    </item>
    <item rdf:about="http://pear.php.net/bug/19255">
      <title>File_CSV: Bug 19255 [Open] bug13332.phpt fails with PHP 5.4</title>
      <link>http://pear.php.net/bugs/19255</link>
      <content:encoded><![CDATA[<pre>File_CSV Bug
Reported by remicollet
2012-01-30T01:15:34+00:00
PHP: 5.4 RC (specify # in Description) OS: GNU/Linux (Fedora 16) Package Version: 1.0.0

Description:
------------
Because of var_dump output changes, this test fails with php 5.4.

$ cat ./CSV/bug13332.diff
002-   [0]=&gt;
002+   [0] =&gt;
004-     [0]=&gt;
004+     [0] =&gt;
...

I think, a switch to a simple print_r could be a good solution.
Please, see attached patch</pre>]]></content:encoded>
      <description><![CDATA[<pre>File_CSV Bug
Reported by remicollet
2012-01-30T01:15:34+00:00
PHP: 5.4 RC (specify # in Description) OS: GNU/Linux (Fedora 16) Package Version: 1.0.0

Description:
------------
Because of var_dump output changes, this test fails with php 5.4.

$ cat ./CSV/bug13332.diff
002-   [0]=&gt;
002+   [0] =&gt;
004-     [0]=&gt;
004+     [0] =&gt;
...

I think, a switch to a simple print_r could be a good solution.
Please, see attached patch</pre>]]></description>
      <dc:date>2012-01-30T04:22:44+00:00</dc:date>
      <dc:creator>Fedora &amp;#x61;&amp;#116; FamilleCollet &amp;#x64;&amp;#111;&amp;#x74; com</dc:creator>
      <dc:subject>File_CSV Bug</dc:subject>
    </item>
    <item rdf:about="http://pear.php.net/bug/12276">
      <title>File_CSV: Feature/Change Request 12276 [Open] allow php:// files</title>
      <link>http://pear.php.net/bugs/12276</link>
      <content:encoded><![CDATA[<pre>File_CSV Feature/Change Request
Reported by cweiske
2007-10-19T05:59:51+00:00
PHP: 5.2.4 OS:  Package Version: CVS

Description:
------------
Currently it is not possible to use File_CSV to directly write to php://output or php://stdout since the protocol is stripped out in File.php.

If you have an application that creates downloadable CSV files, you probably want to directly output it to the browser instead of writing it to disk first.</pre>]]></content:encoded>
      <description><![CDATA[<pre>File_CSV Feature/Change Request
Reported by cweiske
2007-10-19T05:59:51+00:00
PHP: 5.2.4 OS:  Package Version: CVS

Description:
------------
Currently it is not possible to use File_CSV to directly write to php://output or php://stdout since the protocol is stripped out in File.php.

If you have an application that creates downloadable CSV files, you probably want to directly output it to the browser instead of writing it to disk first.</pre>]]></description>
      <dc:date>2007-10-19T05:59:51+00:00</dc:date>
      <dc:creator>cweiske &amp;#x61;&amp;#116; php &amp;#x64;&amp;#111;&amp;#x74; net</dc:creator>
      <dc:subject>File_CSV Feature/Change Request</dc:subject>
    </item>
    <item rdf:about="http://pear.php.net/bug/12275">
      <title>File_CSV: Feature/Change Request 12275 [Open] Allow using file pointers directly</title>
      <link>http://pear.php.net/bugs/12275</link>
      <content:encoded><![CDATA[<pre>File_CSV Feature/Change Request
Reported by cweiske
2007-10-19T05:58:06+00:00
PHP: 5.2.4 OS:  Package Version: CVS

Description:
------------
It would be very helpful if one could directly use file handles instead of always having to pass a file name.

This is especially needed when writing CSV into an already open file.</pre>]]></content:encoded>
      <description><![CDATA[<pre>File_CSV Feature/Change Request
Reported by cweiske
2007-10-19T05:58:06+00:00
PHP: 5.2.4 OS:  Package Version: CVS

Description:
------------
It would be very helpful if one could directly use file handles instead of always having to pass a file name.

This is especially needed when writing CSV into an already open file.</pre>]]></description>
      <dc:date>2007-10-19T05:58:06+00:00</dc:date>
      <dc:creator>cweiske &amp;#x61;&amp;#116; php &amp;#x64;&amp;#111;&amp;#x74; net</dc:creator>
      <dc:subject>File_CSV Feature/Change Request</dc:subject>
    </item>
    <item rdf:about="http://pear.php.net/bug/7742">
      <title>File_CSV: Feature/Change Request 7742 [Open] CSV string parsing</title>
      <link>http://pear.php.net/bugs/7742</link>
      <content:encoded><![CDATA[<pre>File_CSV Feature/Change Request
Reported by olivierg
2006-05-28T22:57:08+00:00
PHP: 4.4.2 OS: Debian Package Version: 

Description:
------------
Could you please add a feature to parse a string that contains CSV data.

Like : $array = File_CSV::parse($string);

I know this is not really about files, but it concerns CSV.

I need it and am about to copy/paste some of your parsing routines into my code, which is not the best thing IMO.</pre>]]></content:encoded>
      <description><![CDATA[<pre>File_CSV Feature/Change Request
Reported by olivierg
2006-05-28T22:57:08+00:00
PHP: 4.4.2 OS: Debian Package Version: 

Description:
------------
Could you please add a feature to parse a string that contains CSV data.

Like : $array = File_CSV::parse($string);

I know this is not really about files, but it concerns CSV.

I need it and am about to copy/paste some of your parsing routines into my code, which is not the best thing IMO.</pre>]]></description>
      <dc:date>2007-08-11T21:14:05+00:00</dc:date>
      <dc:creator>olivier &amp;#x61;&amp;#116; samalyse &amp;#x64;&amp;#111;&amp;#x74; com</dc:creator>
      <dc:subject>File_CSV Feature/Change Request</dc:subject>
    </item>
    <item rdf:about="http://pear.php.net/bug/3935">
      <title>File_CSV: Feature/Change Request 3935 [Assigned] File_CSV::read should optionally ignore field count</title>
      <link>http://pear.php.net/bugs/3935</link>
      <content:encoded><![CDATA[<pre>File_CSV Feature/Change Request
Reported by crain@...
2005-03-23T23:29:05+00:00
PHP: 4.3.9 OS: Win XP Package Version: 

Description:
------------
Hi,

I would like to see an optional third parameter to File_CSV::read() to instruct the method whether or not to ignore lines with more or fewer fields than calculated by File_CSV::discoverFormat(), e.g. function read($file, &amp;$conf, $ignoreSize = false).

Currently, the test at the end of the method results in valid csv data not being returned to the calling script, even though a valid csv file may have lines having varying numbers of elements. If the exploded pieces of a line &lt;&gt; $conf['fields']  (which, being based only on the first five lines of a file, should be only a guideline in any case) the parsed line is not returned.

The current behavior breaks PEAR::Contact_AddressBook::importFromFile(), which relies on File_CSV::read() for parsing csv exports from contact managers, which very typically export files of varying numbers of fields. I think it should be up to the calling script to determine how to respond to a mismatch in size.

Thanks!
Andy Crain</pre>]]></content:encoded>
      <description><![CDATA[<pre>File_CSV Feature/Change Request
Reported by crain@...
2005-03-23T23:29:05+00:00
PHP: 4.3.9 OS: Win XP Package Version: 

Description:
------------
Hi,

I would like to see an optional third parameter to File_CSV::read() to instruct the method whether or not to ignore lines with more or fewer fields than calculated by File_CSV::discoverFormat(), e.g. function read($file, &amp;$conf, $ignoreSize = false).

Currently, the test at the end of the method results in valid csv data not being returned to the calling script, even though a valid csv file may have lines having varying numbers of elements. If the exploded pieces of a line &lt;&gt; $conf['fields']  (which, being based only on the first five lines of a file, should be only a guideline in any case) the parsed line is not returned.

The current behavior breaks PEAR::Contact_AddressBook::importFromFile(), which relies on File_CSV::read() for parsing csv exports from contact managers, which very typically export files of varying numbers of fields. I think it should be up to the calling script to determine how to respond to a mismatch in size.

Thanks!
Andy Crain</pre>]]></description>
      <dc:date>2007-08-11T21:13:39+00:00</dc:date>
      <dc:creator>crain &amp;#x61;&amp;#116; fuse &amp;#x64;&amp;#111;&amp;#x74; net</dc:creator>
      <dc:subject>File_CSV Feature/Change Request</dc:subject>
    </item>
</rdf:RDF>
