summaryrefslogtreecommitdiff
path: root/ext/spl/tests/bug67538.phpt
blob: b6f3848c36a8b4757a5816009808c76277859ca0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
--TEST--
Bug #67538 (SPL Iterators use-after-free)
--FILE--
<?php
$list = new SplDoublyLinkedList();
$list->push('a');
$list->push('b');

$list->rewind();
$list->offsetUnset(0);
$list->push('b');
$list->offsetUnset(0);
$list->next();
echo "okey";
?>
--EXPECTF--
okey