--TEST-- Object-Reference test --SKIPIF-- --FILE-- a = $a; $this->b = $b; } } $o = new Obj(1, 2); $a = array(&$o, &$o); test('object', $a, false); ?> --EXPECTF-- object 9284c001c0a34f626aa16101a1620282c0050002 array(2) { [0]=> &object(Obj)#%d (2) { ["a"]=> int(1) ["b"]=> int(2) } [1]=> &object(Obj)#%d (2) { ["a"]=> int(1) ["b"]=> int(2) } } OK