mirror of
https://github.com/php/php-src.git
synced 2026-03-24 16:22:37 +01:00
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.
24 lines
363 B
PHP
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*
|
|
}
|
|
}
|
|
}
|