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--EXPECT--
16object(Test)#1 (2) {
17  ["foo"]=>
18  NULL
19  ["x":protected]=>
20  NULL
21}
22