diff options
author | ZhouyihaiDing <ddyihai@google.com> | 2018-04-09 13:20:31 -0700 |
---|---|---|
committer | ZhouyihaiDing <ddyihai@google.com> | 2018-04-12 14:01:59 -0700 |
commit | 5c77035e57f2590245bd06372e53964a17ab5d96 (patch) | |
tree | 62e917fbf3e82f8d85ed0dbde26275137d6284d3 /src/php/ext/grpc/php_grpc.c | |
parent | a9b6740d13557f5835414cea542a9a706903b470 (diff) |
PHP: use persistent list not shared by other modules
Diffstat (limited to 'src/php/ext/grpc/php_grpc.c')
-rw-r--r-- | src/php/ext/grpc/php_grpc.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/php/ext/grpc/php_grpc.c b/src/php/ext/grpc/php_grpc.c index 5971babc00..883ee6f3e5 100644 --- a/src/php/ext/grpc/php_grpc.c +++ b/src/php/ext/grpc/php_grpc.c @@ -36,7 +36,7 @@ ZEND_DECLARE_MODULE_GLOBALS(grpc) static PHP_GINIT_FUNCTION(grpc); - +HashTable grpc_persistent_list; /* {{{ grpc_functions[] * * Every user visible function must have an entry in grpc_functions[]. @@ -240,6 +240,8 @@ PHP_MSHUTDOWN_FUNCTION(grpc) { // WARNING: This function IS being called by PHP when the extension // is unloaded but the logs were somehow suppressed. if (GRPC_G(initialized)) { + zend_hash_clean(&grpc_persistent_list); + zend_hash_destroy(&grpc_persistent_list); grpc_shutdown_timeval(TSRMLS_C); grpc_php_shutdown_completion_queue(TSRMLS_C); grpc_shutdown(); @@ -256,7 +258,6 @@ PHP_MINFO_FUNCTION(grpc) { php_info_print_table_row(2, "grpc support", "enabled"); php_info_print_table_row(2, "grpc module version", PHP_GRPC_VERSION); php_info_print_table_end(); - /* Remove comments if you have entries in php.ini DISPLAY_INI_ENTRIES(); */ |