php-src/ext/spl/tests/dllist_012.phpt
2010-04-03 15:42:42 +00:00

22 lines
339 B
PHP

--TEST--
SPL: DoublyLinkedList: recursive var_dump
--FILE--
<?php
$a = new SplDoublyLinkedList;
$a[] = $a;
var_dump($a);
?>
===DONE===
--EXPECTF--
object(SplDoublyLinkedList)#%d (2) {
["flags":"SplDoublyLinkedList":private]=>
int(0)
["dllist":"SplDoublyLinkedList":private]=>
array(1) {
[0]=>
*RECURSION*
}
}
===DONE===