- Notifications
You must be signed in to change notification settings - Fork 117
Closed
Description
When msgpack packs object with PHPONLY option set on false, it returns array without key names. I don't think it's correct behavior.
class Test{private$privateProperty = 'some value'; protected$protectedProperty = 'some value'; public$property = 'some value'} $o = newTest(); $msgpack = newMessagePack(false); print_r($msgpack->unpack($msgpack->pack($o))); $msgpack = newMessagePack(true); print_r($msgpack->unpack($msgpack->pack($o)));Output
Array ( [0] => some value [1] => some value [2] => some value ) Test Object ( [privateProperty:Test:private] => some value [protectedProperty:protected] => some value [property] => some value ) Metadata
Metadata
Assignees
Labels
No labels