<?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=Tree</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/16403" />
      <rdf:li rdf:resource="http://pear.php.net/bug/11982" />
      <rdf:li rdf:resource="http://pear.php.net/bug/3166" />

     </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/16403">
      <title>Tree: Bug 16403 [Open] Notice: Undefined index</title>
      <link>http://pear.php.net/bugs/16403</link>
      <content:encoded><![CDATA[<pre>Tree Bug
Reported by felipernb
2009-07-03T19:44:49+00:00
PHP: 5.* OS: * Package Version: 0.3.4

Description:
------------
Running on E_ALL error reporting mode and with MDB2 I get the following Notice: 
- Notice: Undefined index: parentid in /foo/pearTree/Memory/MDB2simple.php on line 146</pre>]]></content:encoded>
      <description><![CDATA[<pre>Tree Bug
Reported by felipernb
2009-07-03T19:44:49+00:00
PHP: 5.* OS: * Package Version: 0.3.4

Description:
------------
Running on E_ALL error reporting mode and with MDB2 I get the following Notice: 
- Notice: Undefined index: parentid in /foo/pearTree/Memory/MDB2simple.php on line 146</pre>]]></description>
      <dc:date>2009-07-24T18:57:29+00:00</dc:date>
      <dc:creator>felipernb &amp;#x61;&amp;#116; php &amp;#x64;&amp;#111;&amp;#x74; net</dc:creator>
      <dc:subject>Tree Bug</dc:subject>
    </item>
    <item rdf:about="http://pear.php.net/bug/11982">
      <title>Tree: Feature/Change Request 11982 [Open] Root node not present in SQL Query</title>
      <link>http://pear.php.net/bugs/11982</link>
      <content:encoded><![CDATA[<pre>Tree Feature/Change Request
Reported by therebel22
2007-09-05T05:58:17+00:00
PHP: 5.2.3 OS: Linux Debian Etch Package Version: 0.3.2

Description:
------------
Hi,

juste an improvment if you want in MemoryDbSimple :

I hav done a query with some rows with fatherId = -1. But in the dataset returned, there wasn't any row with id = 1.

So, my idea is to create a virtual row with missing id :

Here line 268 in Memory.php :

        /// Searching for missing parentId if present
	unset($tmpAryId);
	unset($tmpAryParentId);
        foreach($res as $tmp_id =&gt; $tmp_val)
        {
         $tmpAryId[] = $tmp_val['id'];
         $tmpAryParentId[] = $tmp_val['parentId'];
        }
        
        foreach($tmpAryParentId as $tmp_val)
        {
        	if(!in_array($tmp_val,$tmpAryId)) $res[] = array ( 'id' =&gt; $tmp_val , 'parentId' =&gt; 0 ,'name' =&gt; 'root');
        }


Bye</pre>]]></content:encoded>
      <description><![CDATA[<pre>Tree Feature/Change Request
Reported by therebel22
2007-09-05T05:58:17+00:00
PHP: 5.2.3 OS: Linux Debian Etch Package Version: 0.3.2

Description:
------------
Hi,

juste an improvment if you want in MemoryDbSimple :

I hav done a query with some rows with fatherId = -1. But in the dataset returned, there wasn't any row with id = 1.

So, my idea is to create a virtual row with missing id :

Here line 268 in Memory.php :

        /// Searching for missing parentId if present
	unset($tmpAryId);
	unset($tmpAryParentId);
        foreach($res as $tmp_id =&gt; $tmp_val)
        {
         $tmpAryId[] = $tmp_val['id'];
         $tmpAryParentId[] = $tmp_val['parentId'];
        }
        
        foreach($tmpAryParentId as $tmp_val)
        {
        	if(!in_array($tmp_val,$tmpAryId)) $res[] = array ( 'id' =&gt; $tmp_val , 'parentId' =&gt; 0 ,'name' =&gt; 'root');
        }


Bye</pre>]]></description>
      <dc:date>2007-09-05T05:58:17+00:00</dc:date>
      <dc:creator>therebel22 &amp;#x61;&amp;#116; gmail &amp;#x64;&amp;#111;&amp;#x74; com</dc:creator>
      <dc:subject>Tree Feature/Change Request</dc:subject>
    </item>
    <item rdf:about="http://pear.php.net/bug/3166">
      <title>Tree: Feature/Change Request 3166 [Open] Change walk/_walk to use call_user_func_array</title>
      <link>http://pear.php.net/bugs/3166</link>
      <content:encoded><![CDATA[<pre>Tree Feature/Change Request
Reported by reywob
2005-01-11T11:23:23+00:00
PHP: 4.3.10 OS: n/a Package Version: 

Description:
------------
Congratulations on this package!

One annoyance I've run across is that I end up duplicating the callback function for _walk a lot.  This is because, for example, I want to print the tree out with different indentation, or extra text strings by each item.

The base code is the same for each function, therefore it would be cleaner if I could pass extra data to the callback function - by using call_user_func_array and having an extra parameter to pass to the method walk (and hence to _walk)</pre>]]></content:encoded>
      <description><![CDATA[<pre>Tree Feature/Change Request
Reported by reywob
2005-01-11T11:23:23+00:00
PHP: 4.3.10 OS: n/a Package Version: 

Description:
------------
Congratulations on this package!

One annoyance I've run across is that I end up duplicating the callback function for _walk a lot.  This is because, for example, I want to print the tree out with different indentation, or extra text strings by each item.

The base code is the same for each function, therefore it would be cleaner if I could pass extra data to the callback function - by using call_user_func_array and having an extra parameter to pass to the method walk (and hence to _walk)</pre>]]></description>
      <dc:date>2005-01-11T11:23:23+00:00</dc:date>
      <dc:creator>peter &amp;#x61;&amp;#116; mapledesign &amp;#x64;&amp;#111;&amp;#x74; co &amp;#x64;&amp;#111;&amp;#x74; uk</dc:creator>
      <dc:subject>Tree Feature/Change Request</dc:subject>
    </item>
</rdf:RDF>
