--TEST-- Serialization of properties should not deal INDIRECT entries to userland --FILE-- __serialize()); $x = new MySplDoublyLinkedList(); var_dump($x->__serialize()); $x = new MySplObjectStorage(); var_dump($x->__serialize()); ?> --EXPECTF-- array(4) { [0]=> int(1) [1]=> array(0) { } [2]=> array(1) { ["%0MyArrayObject%0unused"]=> int(123) } [3]=> NULL } array(3) { [0]=> int(0) [1]=> array(0) { } [2]=> array(1) { ["%0MySplDoublyLinkedList%0unused"]=> int(123) } } array(2) { [0]=> array(0) { } [1]=> array(1) { ["%0MySplObjectStorage%0unused"]=> int(123) } }