aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar kpayson64 <kpayson@google.com>2016-07-08 10:13:27 -0700
committerGravatar GitHub <noreply@github.com>2016-07-08 10:13:27 -0700
commit2bece9e0e1d76910ca2e7e56eb3568983b17e6d4 (patch)
tree7bbb8eb70cbaa48c597d0bbaf58b96602b238fa9 /src
parent703bfbeb93e294078e12c2d4a522fb66c1e8aa3b (diff)
parent69f9e448f8bcb52e27fe944f5ac335ef1ef5d93d (diff)
Merge pull request #7156 from stanley-cheung/php-add-comment-shutdown-warning
PHP: add warning about shutdown function
Diffstat (limited to 'src')
-rw-r--r--src/php/composer.json1
-rw-r--r--src/php/ext/grpc/php_grpc.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/src/php/composer.json b/src/php/composer.json
index 01674a25db..2ad73223c6 100644
--- a/src/php/composer.json
+++ b/src/php/composer.json
@@ -2,7 +2,6 @@
"name": "grpc/grpc",
"type": "library",
"description": "gRPC library for PHP",
- "version": "0.14.0",
"keywords": ["rpc"],
"homepage": "http://grpc.io",
"license": "BSD-3-Clause",
diff --git a/src/php/ext/grpc/php_grpc.c b/src/php/ext/grpc/php_grpc.c
index f4cb5b28cc..449ba3cd47 100644
--- a/src/php/ext/grpc/php_grpc.c
+++ b/src/php/ext/grpc/php_grpc.c
@@ -248,6 +248,8 @@ PHP_MSHUTDOWN_FUNCTION(grpc) {
/* uncomment this line if you have INI entries
UNREGISTER_INI_ENTRIES();
*/
+ // WARNING: This function IS being called by PHP when the extension
+ // is unloaded but the logs were somehow suppressed.
grpc_shutdown_timeval(TSRMLS_C);
grpc_php_shutdown_completion_queue(TSRMLS_C);
grpc_shutdown();