drslump / Protobuf-PHP

PHP implementation of Google's Protocol Buffers with a protoc plugin compiler
http://drslump.github.com/Protobuf-PHP/
MIT License
461 stars 163 forks source link

proto map is not support? #59

Open khadgarmage opened 8 years ago

khadgarmage commented 8 years ago

my proto file has the keyworld: map<string,Object> generate the php file by proto file,that is ok. but, protobuf::decode is not ok, the data as following: class tests\Storys#3 (4) { public $data => array(1) { [0] => class tests\Storys\DataEntry#26 (5) { public $key => NULL public $value => NULL protected $_descriptor => class DrSlump\Protobuf\Descriptor#27 (4) { ... } protected $_extensions => array(0) { ... } protected $_unknown => array(1) { ... } } } protected $_descriptor => class DrSlump\Protobuf\Descriptor#5 (4) { protected $class => string(12) "tests\Storys" protected $name => string(12) "tests.Storys" protected $fields => array(1) { [1] => class DrSlump\Protobuf\Field#6 (8) { ... } } protected $names => array(1) { 'data' => int(1) } } protected $_extensions => array(0) { } protected $_unknown => array(0) { } }