--TEST-- Bug #49649 (unserialize() doesn't handle changes in property visibility) - to protected --FILE-- --EXPECTF-- Deprecated: Creation of dynamic property Foo::$notThere is deprecated in %s on line %d object(Foo)#1 (4) { ["public":protected]=> int(3) ["protected":protected]=> int(2) ["private":protected]=> int(1) ["notThere"]=> string(3) "old" }