Skip to content

Commit

Permalink
Bugfix for when message constructor has no argument. (#7660)
Browse files Browse the repository at this point in the history
This fixes the user issue: #7611 (comment)
  • Loading branch information
haberman committed Jun 29, 2020
1 parent 2c1a461 commit aaf84cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion php/ext/google/protobuf2/message.c
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ PHP_METHOD(Message, __construct) {
const Descriptor* desc = Descriptor_GetFromClassEntry(Z_OBJCE_P(getThis()));
const upb_msgdef *msgdef = desc->msgdef;
upb_arena *arena = Arena_Get(&intern->arena);
zval *init_arr;
zval *init_arr = NULL;

intern->desc = desc;
intern->msg = upb_msg_new(msgdef, arena);
Expand Down

0 comments on commit aaf84cb

Please sign in to comment.