xref: /PHP-7.4/ext/spl/tests/dllist_012.phpt (revision a90c801c)
1--TEST--
2SPL: DoublyLinkedList: recursive var_dump
3--FILE--
4<?php
5$a = new SplDoublyLinkedList;
6$a[] = $a;
7
8var_dump($a);
9?>
10===DONE===
11--EXPECTF--
12object(SplDoublyLinkedList)#%d (2) {
13  ["flags":"SplDoublyLinkedList":private]=>
14  int(0)
15  ["dllist":"SplDoublyLinkedList":private]=>
16  array(1) {
17    [0]=>
18    *RECURSION*
19  }
20}
21===DONE===
22