php-protobuf icon indicating copy to clipboard operation
php-protobuf copied to clipboard

Blocking code

Open sm2017 opened this issue 10 years ago • 3 comments

When I use set{FIELD}($value) in one of my object , The execution of code will be blocked with out error and exception and never resumed to next line , If I commend this set{FIELD}($value) execution will be blocked at serializeToString with no error and exception

How can I debug this ? it is possible I change your C codes to show what happens? and why this line blocks code without error?

sm2017 avatar Nov 16 '16 14:11 sm2017

I understand where is problem , there is a bug in allegro/php-protobuf

If tag numbers are not sequence , this bug will block code , for example if you use sequence 1,2,3,100

sm2017 avatar Nov 16 '16 15:11 sm2017

@sm2017 Could you please show code example?

serggp avatar Nov 16 '16 19:11 serggp

I try to create an example but , I cannot do this ,I dont know why , I exactly do like in my project but there is no problem out of project

I solve my problem in project , just use sequence numbers in .proto file fie fields

sm2017 avatar Feb 26 '17 05:02 sm2017