1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 16:22:37 +01:00
Files
archived-php-src/ext/spl/tests/SplObjectStorage_var_dump.phpt
Nikita Popov 11648c00e9 Don't include object hash in SplObjectStorage debug dump
The object hash is not particularly useful (anymore) and just
clutters the output. It encodes the same information as the
object ID, which is already part of the output.
2021-05-18 17:20:20 +02:00

24 lines
363 B
PHP

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