You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 12, 2021. It is now read-only.
if ((field_descriptors=pb_get_field_descriptors(this)) ==NULL)
694
-
goto fail0;
712
+
goto fail;
695
713
696
714
if ((field_descriptor=pb_get_field_descriptor(this, field_descriptors, field_number)) ==NULL)
697
-
goto fail0;
715
+
goto fail;
698
716
699
717
if ((type=pb_get_field_type(this, field_descriptor, field_number)) ==NULL)
700
-
goto fail0;
701
-
702
-
tmp=*src;
703
-
zval_copy_ctor(&tmp);
704
-
Z_SET_REFCOUNT(tmp, 1);
705
-
Z_UNSET_ISREF(tmp);
718
+
goto fail;
706
719
707
720
if (Z_TYPE_PP(type) ==IS_LONG) {
708
721
switch (Z_LVAL_PP(type))
709
722
{
710
723
casePB_TYPE_DOUBLE:
711
724
casePB_TYPE_FLOAT:
712
-
if (Z_TYPE_P(&tmp) !=IS_DOUBLE)
713
-
convert_to_explicit_type(&tmp, IS_DOUBLE);
714
-
725
+
expected_type=IS_DOUBLE;
715
726
break;
716
727
717
728
casePB_TYPE_FIXED32:
718
729
casePB_TYPE_INT:
719
730
casePB_TYPE_FIXED64:
720
731
casePB_TYPE_SIGNED_INT:
721
732
casePB_TYPE_BOOL:
722
-
if (Z_TYPE_P(&tmp) !=IS_LONG)
723
-
convert_to_explicit_type(&tmp, IS_LONG);
724
-
733
+
expected_type=IS_LONG;
725
734
break;
726
735
727
736
casePB_TYPE_STRING:
728
-
if (Z_TYPE_P(&tmp) !=IS_STRING)
729
-
convert_to_explicit_type(&tmp, IS_STRING);
730
-
737
+
expected_type=IS_STRING;
731
738
break;
732
739
733
740
default:
734
741
PB_COMPILE_ERROR_EX(this, "unexpected '%s' field type %d in field descriptor", pb_get_field_name(this, field_number), zend_get_type_by_const(Z_LVAL_PP(type)));
735
-
goto fail1;
742
+
goto fail;
736
743
}
737
-
738
744
} elseif (Z_TYPE_PP(type) !=IS_STRING) {
739
745
PB_COMPILE_ERROR_EX(this, "unexpected %s type of '%s' field type in field descriptor", zend_get_type_by_const(Z_TYPE_PP(type)), pb_get_field_name(this, field_number));
0 commit comments