protobuf-php / protobuf

PHP implementation of Google's Protocol Buffers
MIT License
236 stars 29 forks source link

Support for shorts and returning -1 #18

Open ellisonpatterson opened 7 years ago

ellisonpatterson commented 7 years ago

Could support for shorts be added as a variable type?

Also it seems for (on a PHP 64bit compiled version) that int64 values are being returned as -1. Is this intended?

Thanks!

FabioBatSilva commented 7 years ago

Can you paste the proto file you are trying to use ?

ellisonpatterson commented 7 years ago

I'm actually using the stream reader for something else (I have the code since I am using it for protobufs and that is working perfectly) and just don't want to have to incorporate multiple dependencies into my code.

The number is the max value for an int64.