mirror of
https://github.com/php/php-src.git
synced 2024-09-23 10:57:26 +00:00
ded3d984c6
EXPECTF logic in run-tests.php is considerable, so let's avoid it.
18 lines
266 B
PHP
18 lines
266 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";
|
|
?>
|
|
--EXPECT--
|
|
okey
|