diff options
author | Paul Yang <TeBoring@users.noreply.github.com> | 2017-12-15 10:36:07 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-15 10:36:07 -0800 |
commit | c79ba5c1b6187d1a6eb1e771976483a9a7b6a434 (patch) | |
tree | 515176992b31a28bebe3843cd30d73748763a85a /php/ext/google/protobuf/protobuf.c | |
parent | 269884a1eb7a1d19d38cf8e61fa436ee8b7849f9 (diff) | |
parent | 8d6f13e86d62b47570810371a6c0528cfb10b781 (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.c | 9 |
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 |