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