mirror of
https://github.com/php/php-src.git
synced 2024-09-29 13:56:09 +00:00
18 lines
267 B
PHP
18 lines
267 B
PHP
--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
|