aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/php/ext
diff options
context:
space:
mode:
authorGravatar Stanley Cheung <stanleycheung@google.com>2018-11-28 14:59:58 -0800
committerGravatar Stanley Cheung <stanleycheung@google.com>2018-11-28 14:59:58 -0800
commit211419d65c119d5bd3a627de5404f2104ae76523 (patch)
tree4911fa2386e1c52e768e3364e96679ac11c58242 /src/php/ext
parent5749f8083033ecdfc0db0a9626d1d4de3d15bdff (diff)
PHP: fix ZTS build
Diffstat (limited to 'src/php/ext')
-rw-r--r--src/php/ext/grpc/php_grpc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/php/ext/grpc/php_grpc.c b/src/php/ext/grpc/php_grpc.c
index f7d5a85876..111c6f4867 100644
--- a/src/php/ext/grpc/php_grpc.c
+++ b/src/php/ext/grpc/php_grpc.c
@@ -170,7 +170,9 @@ void prefork() {
acquire_persistent_locks();
}
-void postfork_child(TSRMLS_D) {
+void postfork_child() {
+ TSRMLS_FETCH();
+
// loop through persistant list and destroy all underlying grpc_channel objs
destroy_grpc_channels();