On parsing .proto file i am receiving this error: Fatal error: Uncaught
exception 'Exception' with message 'Protofile type float unknown!'
The reproduce the issues here is the proto message:
message Geo {
optional float lat = 1;
optional float lon = 2;
optional string country = 3;
optional string city = 4;
optional string zip = 5;
optional int32 type = 6;
optional string continent = 7;
optional string state = 8;
optional int32 dma = 9;
}
The php code is:
require_once('parser/pb_parser.php');
$test = new PBParser();
$test->parse('test.proto');
var_dump('File parsing done!');
Is there any workaround?
P.S. If i change it to int32 it's working fine without exception
Original issue reported on code.google.com by inferno....@gmail.com on 5 Oct 2012 at 7:23
Original issue reported on code.google.com by
inferno....@gmail.com
on 5 Oct 2012 at 7:23