<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to 8: ListIterator remove() Bug</title><link href="https://sourceforge.net/p/phrame/bugs/8/" rel="alternate"/><link href="https://sourceforge.net/p/phrame/bugs/8/feed.atom" rel="self"/><id>https://sourceforge.net/p/phrame/bugs/8/</id><updated>2005-03-26T14:54:06Z</updated><subtitle>Recent changes to 8: ListIterator remove() Bug</subtitle><entry><title>ListIterator remove() Bug</title><link href="https://sourceforge.net/p/phrame/bugs/8/" rel="alternate"/><published>2005-03-26T14:54:06Z</published><updated>2005-03-26T14:54:06Z</updated><author><name>Anonymous</name><uri>https://sourceforge.net/u/userid-None/</uri></author><id>https://sourceforge.net16fd028e3ad1331b7ae905a250f15f554e9e8f14</id><summary type="html">&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;</summary></entry></feed>