Skip to content

Commit

Permalink
Fix conformance test where default value of string/message map is not…
Browse files Browse the repository at this point in the history
… encoded
  • Loading branch information
TeBoring committed Oct 10, 2019
1 parent 627d55b commit b54d22e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion php/ext/google/protobuf/encode_decode.c
Expand Up @@ -1228,7 +1228,7 @@ static void put_optional_value(const void* memory, int len,
break;
case UPB_TYPE_MESSAGE: {
#if PHP_MAJOR_VERSION < 7
MessageHeader *submsg = UNBOX(MessageHeader, *(zval**)memory);
MessageHeader *submsg = submsg = UNBOX(MessageHeader, *(zval**)memory);
#else
MessageHeader *submsg =
(MessageHeader*)((char*)(*(zend_object**)memory) -
Expand Down

0 comments on commit b54d22e

Please sign in to comment.