Skip to content

Commit de5ae85

Browse files
fix php_protocolbuffers_parse_magic_method
1 parent 747a223 commit de5ae85

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

message.c

+6-5
Original file line numberDiff line numberDiff line change
@@ -877,11 +877,12 @@ static enum ProtocolBuffers_MagicMethod php_protocolbuffers_parse_magic_method(c
877877

878878
if (name[i] >= 'A' && name[i] <= 'Z') {
879879
if (buf->len > 0) {
880-
if ((last_is_capital == 0
881-
&& i+1 >= name_len)
882-
|| (i+1 < name_len && name[i+1] >= 'a' && name[i+1] <= 'z')) {
883-
smart_str_appendc(buf, '_');
884-
}
880+
// if ((last_is_capital == 0
881+
// && i+1 >= name_len)
882+
// || (i+1 < name_len && name[i+1] >= 'a' && name[i+1] <= 'z')) {
883+
// smart_str_appendc(buf, '_');
884+
// }
885+
smart_str_appendc(buf, '_');
885886
}
886887
smart_str_appendc(buf, name[i] + ('a' - 'A'));
887888
smart_str_appendc(buf2, name[i]);

0 commit comments

Comments
 (0)