<?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_DataSource</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/18747" />
      <rdf:li rdf:resource="http://pear.php.net/bug/17201" />

     </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/18747">
      <title>File_CSV_DataSource: Bug 18747 [Open] Filter columns with $csv-&gt;connect($array)</title>
      <link>http://pear.php.net/bugs/18747</link>
      <content:encoded><![CDATA[<pre>File_CSV_DataSource Bug
Reported by bery
2011-08-22T03:49:10+00:00
PHP: 5.2.12 OS: Windows 7 SP 1 Package Version: 1.0.1

Description:
------------
When filtering CSV data with connect(array()) I have encountered a strange bug. In your code you use $columns === array() which does not work and always returns false. I replaced it with is_array() function and everything works as supposed.

Test script:
---------------
$arr = array(&quot;a&quot;,&quot;b&quot;,&quot;c&quot;);
if(is_array($arr) return &quot;ok\r\n&quot;;
if($arr === array()) return &quot;array too&quot;;

//prints ok

Expected result:
----------------
ok
array too

Actual result:
--------------
ok

Just note - you miss PHP version 5.2.17 so I chose the rearst option.</pre>]]></content:encoded>
      <description><![CDATA[<pre>File_CSV_DataSource Bug
Reported by bery
2011-08-22T03:49:10+00:00
PHP: 5.2.12 OS: Windows 7 SP 1 Package Version: 1.0.1

Description:
------------
When filtering CSV data with connect(array()) I have encountered a strange bug. In your code you use $columns === array() which does not work and always returns false. I replaced it with is_array() function and everything works as supposed.

Test script:
---------------
$arr = array(&quot;a&quot;,&quot;b&quot;,&quot;c&quot;);
if(is_array($arr) return &quot;ok\r\n&quot;;
if($arr === array()) return &quot;array too&quot;;

//prints ok

Expected result:
----------------
ok
array too

Actual result:
--------------
ok

Just note - you miss PHP version 5.2.17 so I chose the rearst option.</pre>]]></description>
      <dc:date>2011-08-22T03:49:10+00:00</dc:date>
      <dc:creator>bery &amp;#x61;&amp;#116; drupaler &amp;#x64;&amp;#111;&amp;#x74; cz</dc:creator>
      <dc:subject>File_CSV_DataSource Bug</dc:subject>
    </item>
    <item rdf:about="http://pear.php.net/bug/17201">
      <title>File_CSV_DataSource: Feature/Change Request 17201 [Open] records ident with getAsymmetricRows() report</title>
      <link>http://pear.php.net/bugs/17201</link>
      <content:encoded><![CDATA[<pre>File_CSV_DataSource Feature/Change Request
Reported by farell
2010-03-07T21:11:23+00:00
PHP: 5.2.11 OS:  Package Version: 1.0.1

Description:
------------
I've tried File_CSV_DataSource today, and I like it usefull except for report returns by getAsymmetricRows().

I'd like to have directly the record # as key array item for each asymmetric rows.

For example, if I use the &quot;File_CSV_DataSource-1.0.1\tests\data\asymmetric.csv&quot; file I would like to know that asymmetrics records are #6 and #9.

Test script:
---------------
&lt;?php
require_once 'File/CSV/DataSource.php';

$csv  = new File_CSV_DataSource();
$resp = $csv-&gt;load('asymmetric.csv');
if ($resp) {

    $asymmetric = $csv-&gt;getAsymmetricRows();      if (count($asymmetric) &gt; 0) {
        print_r(array_keys($asymmetric));
    }
}
?&gt;

Expected result:
----------------
array (
  6 =&gt; 
  array (
    0 =&gt; '5aa',
    1 =&gt; '5bb',
    2 =&gt; '5cc',
    3 =&gt; '5dd',
    4 =&gt; '5ee',
    5 =&gt; 'extra1',
  ),
  9 =&gt; 
  array (
    0 =&gt; '8aa',
    1 =&gt; '8bb',
    2 =&gt; '8cc',
    3 =&gt; '8dd',
    4 =&gt; '8ee',
    5 =&gt; 'extra2',
  ),
)


Actual result:
--------------
array (
  0 =&gt; 
  array (
    0 =&gt; '5aa',
    1 =&gt; '5bb',
    2 =&gt; '5cc',
    3 =&gt; '5dd',
    4 =&gt; '5ee',
    5 =&gt; 'extra1',
  ),
  1 =&gt; 
  array (
    0 =&gt; '8aa',
    1 =&gt; '8bb',
    2 =&gt; '8cc',
    3 =&gt; '8dd',
    4 =&gt; '8ee',
    5 =&gt; 'extra2',
  ),
)</pre>]]></content:encoded>
      <description><![CDATA[<pre>File_CSV_DataSource Feature/Change Request
Reported by farell
2010-03-07T21:11:23+00:00
PHP: 5.2.11 OS:  Package Version: 1.0.1

Description:
------------
I've tried File_CSV_DataSource today, and I like it usefull except for report returns by getAsymmetricRows().

I'd like to have directly the record # as key array item for each asymmetric rows.

For example, if I use the &quot;File_CSV_DataSource-1.0.1\tests\data\asymmetric.csv&quot; file I would like to know that asymmetrics records are #6 and #9.

Test script:
---------------
&lt;?php
require_once 'File/CSV/DataSource.php';

$csv  = new File_CSV_DataSource();
$resp = $csv-&gt;load('asymmetric.csv');
if ($resp) {

    $asymmetric = $csv-&gt;getAsymmetricRows();      if (count($asymmetric) &gt; 0) {
        print_r(array_keys($asymmetric));
    }
}
?&gt;

Expected result:
----------------
array (
  6 =&gt; 
  array (
    0 =&gt; '5aa',
    1 =&gt; '5bb',
    2 =&gt; '5cc',
    3 =&gt; '5dd',
    4 =&gt; '5ee',
    5 =&gt; 'extra1',
  ),
  9 =&gt; 
  array (
    0 =&gt; '8aa',
    1 =&gt; '8bb',
    2 =&gt; '8cc',
    3 =&gt; '8dd',
    4 =&gt; '8ee',
    5 =&gt; 'extra2',
  ),
)


Actual result:
--------------
array (
  0 =&gt; 
  array (
    0 =&gt; '5aa',
    1 =&gt; '5bb',
    2 =&gt; '5cc',
    3 =&gt; '5dd',
    4 =&gt; '5ee',
    5 =&gt; 'extra1',
  ),
  1 =&gt; 
  array (
    0 =&gt; '8aa',
    1 =&gt; '8bb',
    2 =&gt; '8cc',
    3 =&gt; '8dd',
    4 =&gt; '8ee',
    5 =&gt; 'extra2',
  ),
)</pre>]]></description>
      <dc:date>2010-03-07T21:38:49+00:00</dc:date>
      <dc:creator>pear &amp;#x61;&amp;#116; laurent-laville &amp;#x64;&amp;#111;&amp;#x74; org</dc:creator>
      <dc:subject>File_CSV_DataSource Feature/Change Request</dc:subject>
    </item>
</rdf:RDF>
