Class with public property unserialized to class with private property
object(WithPrivate)#3 (1) {
["property":"WithPrivate":private]=>
string(5) "value"
}
Property should be 'value': valueNULL
Class with private property unserialized to class with public property
Deprecated: Creation of dynamic property WithPublic::$property is deprecated in /in/QKTGW on line 27
object(WithPublic)#4 (2) {
["property"]=>
NULL
["property":"WithPrivate":private]=>
string(5) "value"
}
Property should be 'value': NULL
Class with public property unserialized to class with private property
object(WithPrivate)#3 (1) {
["property":"WithPrivate":private]=>
string(5) "value"
}
Property should be 'value': valueNULL
Class with private property unserialized to class with public property
object(WithPublic)#4 (2) {
["property"]=>
NULL
["property":"WithPrivate":private]=>
string(5) "value"
}
Property should be 'value': NULL
Output for 7.2.0 - 7.2.7
Class with public property unserialized to class with private property
object(WithPrivate)#3 (1) {
["property":"WithPrivate":private]=>
string(5) "value"
}
Property should be 'value': valueNULL
Class with private property unserialized to class with public property
object(WithPublic)#4 (1) {
["property"]=>
string(5) "value"
}
Property should be 'value': valueNULL
Class with public property unserialized to class with private property
object(WithPrivate)#3 (2) {
["property":"WithPrivate":private]=>
NULL
["property"]=>
string(5) "value"
}
Property should be 'value': NULL
Class with private property unserialized to class with public property
object(WithPublic)#4 (2) {
["property"]=>
NULL
["property":"WithPrivate":private]=>
string(5) "value"
}
Property should be 'value': NULL