kebabtent / pogoprotos-php

Compiled PHP protobufs for pokemon go
MIT License
22 stars 8 forks source link

When read_bytes $len = 0, return null #4

Closed barryvdh closed 8 years ago

barryvdh commented 8 years ago

It throws a warning + failes when trying to read 0 byes. Return null instead. Fixes #4

barryvdh commented 8 years ago

Although this fixes the error, and receives the API url, this invalidates the actual responses. Not really sure if I'm getting the response actually or not.

jaspervdm commented 8 years ago

Obsolete with switch to new protobuf generator