mirror of
https://github.com/php/php-src.git
synced 2024-12-04 23:34:25 +08:00
19 lines
260 B
PHP
19 lines
260 B
PHP
--TEST--
|
|
SPL: ArrayObject revursive var_dump
|
|
--FILE--
|
|
<?php
|
|
class AO extends ArrayObject {
|
|
}
|
|
$o = new AO();
|
|
$o['plop'] = $o;
|
|
|
|
var_dump($o);
|
|
--EXPECTF--
|
|
object(AO)#%d (1) {
|
|
["storage":"ArrayObject":private]=>
|
|
array(1) {
|
|
["plop"]=>
|
|
*RECURSION*
|
|
}
|
|
}
|