mirror of
https://github.com/php/php-src.git
synced 2024-10-03 07:46:12 +00:00
25 lines
361 B
Plaintext
25 lines
361 B
Plaintext
|
--TEST--
|
||
|
SPL: DoublyLinkedList: memory leak when iterator pointer isn't at the last element
|
||
|
--FILE--
|
||
|
<?php
|
||
|
$dll = new SplDoublyLinkedList();
|
||
|
$dll->push(1);
|
||
|
$dll->push(2);
|
||
|
$dll->push(3);
|
||
|
$dll->push(4);
|
||
|
|
||
|
|
||
|
$dll->rewind();
|
||
|
echo $dll->current()."\n";
|
||
|
$dll->next();
|
||
|
$dll->next();
|
||
|
echo $dll->current()."\n";
|
||
|
|
||
|
?>
|
||
|
===DONE===
|
||
|
<?php exit(0); ?>
|
||
|
--EXPECTF--
|
||
|
1
|
||
|
3
|
||
|
===DONE===
|