1--TEST-- 2Bug #55798 (serialize followed by unserialize with numeric object prop. gives integer prop) 3--FILE-- 4<?php 5 6$a = new stdClass(); 7$a->{0} = 'X'; 8$a->{1} = 'Y'; 9var_dump(serialize($a)); 10var_dump($a->{0}); 11$b = unserialize(serialize($a)); 12var_dump(serialize($b)); 13var_dump($b->{0}); 14--EXPECT-- 15string(51) "O:8:"stdClass":2:{s:1:"0";s:1:"X";s:1:"1";s:1:"Y";}" 16string(1) "X" 17string(51) "O:8:"stdClass":2:{s:1:"0";s:1:"X";s:1:"1";s:1:"Y";}" 18string(1) "X" 19