1--TEST--
2Bug #67538 (SPL Iterators use-after-free)
3--FILE--
4<?php
5$list = new SplDoublyLinkedList();
6$list->push('a');
7$list->push('b');
8
9$list->rewind();
10$list->offsetUnset(0);
11$list->push('b');
12$list->offsetUnset(0);
13$list->next();
14echo "okey";
15?>
16--EXPECTF--
17okey
18