1--TEST--
2Bug #55157: ArrayIterator always skips the second element in the array when calling offsetUnset()
3--DESCRIPTION--
4One of the test cases from bug #55157. This is a workaround around the problem that has worked
5since PHP 5.0.4.
6--FILE--
7<?php
8$nums = range(0, 3);
9$numIt = new ArrayIterator($nums);
10
11for ($numIt->rewind(); $numIt->valid();) {
12    echo "{$numIt->key()} => {$numIt->current()}\n";
13    $numIt->offsetUnset($numIt->key());
14}
15?>
16--EXPECT--
170 => 0
181 => 1
192 => 2
203 => 3
21