Share

Phrame

Tracker: Bugs

5 ListIterator remove() Bug - ID: 1171027
Last Update: Tracker Item Submitted ( nobody )

The ListIterator has to correct the current index
position when removing some Element while iterating.
Otherwise it will skip the Element wich moves to the
same position as the removed element.

This should fix it:

function remove()
{
$this->_index = $this->_element;
array_splice($this->_values, $this->_element, 1);
}

Cheers


Nobody/Anonymous ( nobody ) - 2005-03-26 14:54

5

Open

None

Nobody/Anonymous

None

None

Public


Comments




Log in to comment.

No follow-up comments have been posted.

Attached File

No Files Currently Attached

Change

No changes have been made to this artifact.