From 74eb9a0a304a3261f3c83e100f51081986ac8ba6 Mon Sep 17 00:00:00 2001 From: Paul Yang Date: Sat, 11 Feb 2017 16:36:17 -0800 Subject: Add clear method to PHP message (#2700) --- php/ext/google/protobuf/protobuf.h | 1 + 1 file changed, 1 insertion(+) (limited to 'php/ext/google/protobuf/protobuf.h') diff --git a/php/ext/google/protobuf/protobuf.h b/php/ext/google/protobuf/protobuf.h index 678f2682..d4737fb9 100644 --- a/php/ext/google/protobuf/protobuf.h +++ b/php/ext/google/protobuf/protobuf.h @@ -244,6 +244,7 @@ const char* layout_get_oneof_case(MessageLayout* layout, const void* storage, const upb_oneofdef* oneof TSRMLS_DC); void free_layout(MessageLayout* layout); +PHP_METHOD(Message, clear); PHP_METHOD(Message, readOneof); PHP_METHOD(Message, writeOneof); PHP_METHOD(Message, whichOneof); -- cgit v1.2.3