aboutsummaryrefslogtreecommitdiffhomepage
path: root/php/ext/google/protobuf/protobuf.c
diff options
context:
space:
mode:
authorGravatar Paul Yang <TeBoring@users.noreply.github.com>2017-12-15 10:36:07 -0800
committerGravatar GitHub <noreply@github.com>2017-12-15 10:36:07 -0800
commitc79ba5c1b6187d1a6eb1e771976483a9a7b6a434 (patch)
tree515176992b31a28bebe3843cd30d73748763a85a /php/ext/google/protobuf/protobuf.c
parent269884a1eb7a1d19d38cf8e61fa436ee8b7849f9 (diff)
parent8d6f13e86d62b47570810371a6c0528cfb10b781 (diff)
Merge pull request #4034 from TeBoring/php-timestamp-bug
Avoid calling method from php extension directly
Diffstat (limited to 'php/ext/google/protobuf/protobuf.c')
-rw-r--r--php/ext/google/protobuf/protobuf.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/php/ext/google/protobuf/protobuf.c b/php/ext/google/protobuf/protobuf.c
index 265d636e..daebb460 100644
--- a/php/ext/google/protobuf/protobuf.c
+++ b/php/ext/google/protobuf/protobuf.c
@@ -182,8 +182,15 @@ zend_function_entry protobuf_functions[] = {
ZEND_FE_END
};
+static const zend_module_dep protobuf_deps[] = {
+ ZEND_MOD_OPTIONAL("date")
+ ZEND_MOD_END
+};
+
zend_module_entry protobuf_module_entry = {
- STANDARD_MODULE_HEADER,
+ STANDARD_MODULE_HEADER_EX,
+ NULL,
+ protobuf_deps,
PHP_PROTOBUF_EXTNAME, // extension name
protobuf_functions, // function list
PHP_MINIT(protobuf), // process startup