<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to 8: ListIterator remove() Bug</title><link>https://sourceforge.net/p/phrame/bugs/8/</link><description>Recent changes to 8: ListIterator remove() Bug</description><atom:link href="https://sourceforge.net/p/phrame/bugs/8/feed.rss" rel="self"/><language>en</language><lastBuildDate>Sat, 26 Mar 2005 14:54:06 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/phrame/bugs/8/feed.rss" rel="self" type="application/rss+xml"/><item><title>ListIterator remove() Bug</title><link>https://sourceforge.net/p/phrame/bugs/8/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;The ListIterator has to correct the current index&lt;br /&gt;
position when removing some Element while iterating.&lt;br /&gt;
Otherwise it will skip the Element wich moves to the&lt;br /&gt;
same position as the removed element.&lt;/p&gt;
&lt;p&gt;This should fix it:&lt;/p&gt;
&lt;p&gt;function remove()&lt;br /&gt;
{&lt;br /&gt;
$this-&amp;gt;_index = $this-&amp;gt;_element;&lt;br /&gt;
array_splice($this-&amp;gt;_values, $this-&amp;gt;_element, 1);&lt;br /&gt;
} &lt;/p&gt;
&lt;p&gt;Cheers&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Sat, 26 Mar 2005 14:54:06 -0000</pubDate><guid>https://sourceforge.net16fd028e3ad1331b7ae905a250f15f554e9e8f14</guid></item></channel></rss>