aboutsummaryrefslogtreecommitdiff
path: root/php/ext/google/protobuf/storage.c
diff options
context:
space:
mode:
authorPaul Yang <TeBoring@users.noreply.github.com>2017-02-08 10:27:54 -0800
committerGitHub <noreply@github.com>2017-02-08 10:27:54 -0800
commitcba04b19e88dba2c13241b733bf7f595f1463082 (patch)
treeda61ea725e19eadce400ae17df845e04f36bc608 /php/ext/google/protobuf/storage.c
parentc00274313d03a0a7f10e8f6473541faf3739353b (diff)
downloadprotobuf-cba04b19e88dba2c13241b733bf7f595f1463082.tar.gz
protobuf-cba04b19e88dba2c13241b733bf7f595f1463082.tar.bz2
protobuf-cba04b19e88dba2c13241b733bf7f595f1463082.zip
Implement json encoding decoding for php. (#2682)
Diffstat (limited to 'php/ext/google/protobuf/storage.c')
-rw-r--r--php/ext/google/protobuf/storage.c1
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);
}