diff options
author | Paul Yang <TeBoring@users.noreply.github.com> | 2017-02-08 10:27:54 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-08 10:27:54 -0800 |
commit | cba04b19e88dba2c13241b733bf7f595f1463082 (patch) | |
tree | da61ea725e19eadce400ae17df845e04f36bc608 /php/ext/google/protobuf/storage.c | |
parent | c00274313d03a0a7f10e8f6473541faf3739353b (diff) |
Implement json encoding decoding for php. (#2682)
Diffstat (limited to 'php/ext/google/protobuf/storage.c')
-rw-r--r-- | php/ext/google/protobuf/storage.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/php/ext/google/protobuf/storage.c b/php/ext/google/protobuf/storage.c index 42bcce59..ba6ac59e 100644 --- a/php/ext/google/protobuf/storage.c +++ b/php/ext/google/protobuf/storage.c @@ -482,6 +482,7 @@ void layout_init(MessageLayout* layout, void* storage, repeated_field_create_with_type(repeated_field_type, field, property_ptr TSRMLS_CC); DEREF(memory, zval**) = property_ptr; + property_ptr = NULL; } else { native_slot_init(upb_fielddef_type(field), memory, property_ptr); } |