1--TEST-- 2Overwriting an undeclared property with protected mangling 3--FILE-- 4<?php 5class Test { 6 // We need at least one declared property, even though we don't use it. 7 public $foo; 8} 9 10$str = <<<STR 11O:4:"Test":2:{s:4:"\0*\0x";N;s:4:"\0*\0x";N;} 12STR; 13var_dump(unserialize($str)); 14?> 15--EXPECTF-- 16Deprecated: Creation of dynamic property Test::$x is deprecated in %s on line %d 17object(Test)#1 (2) { 18 ["foo"]=> 19 NULL 20 ["x":protected]=> 21 NULL 22} 23