snowrlily / pb4php

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

Scalar types double,float,uint32,uint64,fixed32,fixed64,sfixed32,sfixed64 not working #12

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
When I use the scalar types of double, float, uint32, uint64, fixed32,
fixed64, sfixed32, or sfixed64 it throws the error "Protofile type XXXX
unknown!"

Expected:
I assume it should treat those as PBInt type (or be specifically coded if
needed)

Original issue reported on code.google.com by mrst...@gmail.com on 12 Mar 2010 at 11:53

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Uncaught exception 'Exception' with message 'Protofile type uint32 
unknown!',how to deal it

Original comment by calvin...@gmail.com on 30 Dec 2013 at 3:28

GoogleCodeExporter commented 8 years ago
check definition of this array scalar_types。as:
array('double', 'float', 'int32' => 'PBInt', 'int64' => 'PBInt',
                              'uint32', 'uint64', 'sint32' => 'PBSignedInt', 'sint64' => 'PBSignedInt',
                              'fixed32', 'fixed64', 'sfixed32', 'sfixed64',
                              'bool' => 'PBBool', 'string' => 'PBString', 'bytes' => 'PBString');
u can modify 'uint32' to 'uint32' => 'PBInt'

Original comment by boboxu84@gmail.com on 21 Feb 2014 at 3:31