xref: /PHP-7.4/ext/spl/tests/bug67538.phpt (revision ded3d984)
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--EXPECT--
17okey
18