--TEST-- serialization: arrays with references amonst elements --FILE-- --EXPECT-- --- No references: array(3) { [0]=> int(1) [1]=> int(1) [2]=> int(1) } string(30) "a:3:{i:0;i:1;i:1;i:1;i:2;i:1;}" array(3) { [0]=> int(1) [1]=> int(1) [2]=> int(1) } array(3) { [0]=> string(10) "b0.changed" [1]=> int(1) [2]=> int(1) } array(3) { [0]=> string(10) "b0.changed" [1]=> string(10) "b1.changed" [2]=> int(1) } array(3) { [0]=> string(10) "b0.changed" [1]=> string(10) "b1.changed" [2]=> string(10) "b2.changed" } --- 0 refs 1: array(3) { [1]=> &int(1) [0]=> &int(1) [2]=> int(1) } string(30) "a:3:{i:1;i:1;i:0;R:2;i:2;i:1;}" array(3) { [1]=> &int(1) [0]=> &int(1) [2]=> int(1) } array(3) { [1]=> &string(10) "b0.changed" [0]=> &string(10) "b0.changed" [2]=> int(1) } array(3) { [1]=> &string(10) "b1.changed" [0]=> &string(10) "b1.changed" [2]=> int(1) } array(3) { [1]=> &string(10) "b1.changed" [0]=> &string(10) "b1.changed" [2]=> string(10) "b2.changed" } --- 0 refs 2: array(3) { [2]=> &int(1) [0]=> &int(1) [1]=> int(1) } string(30) "a:3:{i:2;i:1;i:0;R:2;i:1;i:1;}" array(3) { [2]=> &int(1) [0]=> &int(1) [1]=> int(1) } array(3) { [2]=> &string(10) "b0.changed" [0]=> &string(10) "b0.changed" [1]=> int(1) } array(3) { [2]=> &string(10) "b0.changed" [0]=> &string(10) "b0.changed" [1]=> string(10) "b1.changed" } array(3) { [2]=> &string(10) "b2.changed" [0]=> &string(10) "b2.changed" [1]=> string(10) "b1.changed" } --- 1 refs 0: array(3) { [0]=> &int(1) [1]=> &int(1) [2]=> int(1) } string(30) "a:3:{i:0;i:1;i:1;R:2;i:2;i:1;}" array(3) { [0]=> &int(1) [1]=> &int(1) [2]=> int(1) } array(3) { [0]=> &string(10) "b0.changed" [1]=> &string(10) "b0.changed" [2]=> int(1) } array(3) { [0]=> &string(10) "b1.changed" [1]=> &string(10) "b1.changed" [2]=> int(1) } array(3) { [0]=> &string(10) "b1.changed" [1]=> &string(10) "b1.changed" [2]=> string(10) "b2.changed" } --- 1 refs 2: array(3) { [0]=> int(1) [2]=> &int(1) [1]=> &int(1) } string(30) "a:3:{i:0;i:1;i:2;i:1;i:1;R:3;}" array(3) { [0]=> int(1) [2]=> &int(1) [1]=> &int(1) } array(3) { [0]=> string(10) "b0.changed" [2]=> &int(1) [1]=> &int(1) } array(3) { [0]=> string(10) "b0.changed" [2]=> &string(10) "b1.changed" [1]=> &string(10) "b1.changed" } array(3) { [0]=> string(10) "b0.changed" [2]=> &string(10) "b2.changed" [1]=> &string(10) "b2.changed" } --- 2 refs 0: array(3) { [0]=> &int(1) [1]=> int(1) [2]=> &int(1) } string(30) "a:3:{i:0;i:1;i:1;i:1;i:2;R:2;}" array(3) { [0]=> &int(1) [1]=> int(1) [2]=> &int(1) } array(3) { [0]=> &string(10) "b0.changed" [1]=> int(1) [2]=> &string(10) "b0.changed" } array(3) { [0]=> &string(10) "b0.changed" [1]=> string(10) "b1.changed" [2]=> &string(10) "b0.changed" } array(3) { [0]=> &string(10) "b2.changed" [1]=> string(10) "b1.changed" [2]=> &string(10) "b2.changed" } --- 2 refs 1: array(3) { [0]=> int(1) [1]=> &int(1) [2]=> &int(1) } string(30) "a:3:{i:0;i:1;i:1;i:1;i:2;R:3;}" array(3) { [0]=> int(1) [1]=> &int(1) [2]=> &int(1) } array(3) { [0]=> string(10) "b0.changed" [1]=> &int(1) [2]=> &int(1) } array(3) { [0]=> string(10) "b0.changed" [1]=> &string(10) "b1.changed" [2]=> &string(10) "b1.changed" } array(3) { [0]=> string(10) "b0.changed" [1]=> &string(10) "b2.changed" [2]=> &string(10) "b2.changed" } --- 0,1 ref 2: array(3) { [2]=> &int(1) [0]=> &int(1) [1]=> &int(1) } string(30) "a:3:{i:2;i:1;i:0;R:2;i:1;R:2;}" array(3) { [2]=> &int(1) [0]=> &int(1) [1]=> &int(1) } array(3) { [2]=> &string(10) "b0.changed" [0]=> &string(10) "b0.changed" [1]=> &string(10) "b0.changed" } array(3) { [2]=> &string(10) "b1.changed" [0]=> &string(10) "b1.changed" [1]=> &string(10) "b1.changed" } array(3) { [2]=> &string(10) "b2.changed" [0]=> &string(10) "b2.changed" [1]=> &string(10) "b2.changed" } --- 0,2 ref 1: array(3) { [1]=> &int(1) [0]=> &int(1) [2]=> &int(1) } string(30) "a:3:{i:1;i:1;i:0;R:2;i:2;R:2;}" array(3) { [1]=> &int(1) [0]=> &int(1) [2]=> &int(1) } array(3) { [1]=> &string(10) "b0.changed" [0]=> &string(10) "b0.changed" [2]=> &string(10) "b0.changed" } array(3) { [1]=> &string(10) "b1.changed" [0]=> &string(10) "b1.changed" [2]=> &string(10) "b1.changed" } array(3) { [1]=> &string(10) "b2.changed" [0]=> &string(10) "b2.changed" [2]=> &string(10) "b2.changed" } --- 1,2 ref 0: array(3) { [0]=> &int(1) [1]=> &int(1) [2]=> &int(1) } string(30) "a:3:{i:0;i:1;i:1;R:2;i:2;R:2;}" array(3) { [0]=> &int(1) [1]=> &int(1) [2]=> &int(1) } array(3) { [0]=> &string(10) "b0.changed" [1]=> &string(10) "b0.changed" [2]=> &string(10) "b0.changed" } array(3) { [0]=> &string(10) "b1.changed" [1]=> &string(10) "b1.changed" [2]=> &string(10) "b1.changed" } array(3) { [0]=> &string(10) "b2.changed" [1]=> &string(10) "b2.changed" [2]=> &string(10) "b2.changed" } Done