diff options
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(); */ |