Skip to content

Commit

Permalink
Ignore unknown enum value when ignore_unknown specified (#7455)
Browse files Browse the repository at this point in the history
  • Loading branch information
TeBoring authored May 4, 2020
1 parent ed5c874 commit 317bc83
Show file tree
Hide file tree
Showing 5 changed files with 3,007 additions and 2,755 deletions.
4 changes: 2 additions & 2 deletions php/ext/google/protobuf/map.c
Original file line number Diff line number Diff line change
Expand Up @@ -516,8 +516,8 @@ bool map_done(MapIter *iter) {
}

const char *map_iter_key(MapIter *iter, int *len) {
*len = upb_strtable_iter_keylength(&iter->it);
return upb_strtable_iter_key(&iter->it);
*len = upb_strtable_iter_key(&iter->it).size;
return upb_strtable_iter_key(&iter->it).data;
}

upb_value map_iter_value(MapIter *iter, int *len) {
Expand Down
Loading

0 comments on commit 317bc83

Please sign in to comment.