allegro / php-protobuf

PHP Protobuf - Google's Protocol Buffers for PHP

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error when trying to compile proto file

bretwalker opened this issue · comments

I get the following error when trying to compile a proto file from Google:

Proto file missformed

protoc-php.php implements most of proto file syntax but not all of it. I have plans to use one provided by Google.

Hi,

I have tried to parse https://raw.githubusercontent.com/xemul/criu/master/protobuf/rpc.proto
The errors caused by:

  1. Parsing semicolon or ;
  2. Parsing /* comment */ comment

I also encounter the same error. Have to replace all the block comments with line comments.