1--TEST-- 2Bug #77298 (segfault occurs when add property to unserialized ArrayObject) 3--FILE-- 4<?php 5$o = new ArrayObject(); 6$o2 = unserialize(serialize($o)); 7$o2[1]=123; 8var_dump($o2); 9 10$o3 = new ArrayObject(); 11$o3->unserialize($o->serialize()); 12$o3['xm']=456; 13var_dump($o3); 14--EXPECT-- 15object(ArrayObject)#2 (1) { 16 ["storage":"ArrayObject":private]=> 17 array(1) { 18 [1]=> 19 int(123) 20 } 21} 22object(ArrayObject)#3 (1) { 23 ["storage":"ArrayObject":private]=> 24 array(1) { 25 ["xm"]=> 26 int(456) 27 } 28} 29