1
0
mirror of https://github.com/php/php-src.git synced 2026-03-25 16:52:18 +01:00
Files
archived-php-src/ext/spl/tests/SplObjectStorage_var_dump.phpt

36 lines
646 B
PHP

--TEST--
SPL: SplObjectStorage: recursive var_dump
--FILE--
<?php
$o = new SplObjectStorage();
$o[new StdClass] = $o;
var_dump($o);
--EXPECTF--
object(SplObjectStorage)#1 (1) {
[u"storage":u"SplObjectStorage":private]=>
array(1) {
["%s"]=>
array(2) {
["obj"]=>
object(stdClass)#2 (0) {
}
["inf"]=>
object(SplObjectStorage)#1 (1) {
[u"storage":u"SplObjectStorage":private]=>
array(1) {
["%s"]=>
array(2) {
["obj"]=>
object(stdClass)#2 (0) {
}
["inf"]=>
*RECURSION*
}
}
}
}
}
}