paradokslabs / pb4php

Automatically exported from code.google.com/p/pb4php
0 stars 0 forks source link

Protofile type #22

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
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

GoogleCodeExporter commented 8 years ago
ditto

Original comment by fort...@gmail.com on 19 Jun 2013 at 2:56