From 9e11a98eb497de93e124714a354cf0995f1fbd87 Mon Sep 17 00:00:00 2001 From: Craig Tiller Date: Fri, 9 Dec 2016 09:46:08 -0800 Subject: [PATCH] Continue updating PHP --- src/php/ext/grpc/server.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/php/ext/grpc/server.c b/src/php/ext/grpc/server.c index 6f8e1e4cd80..55a61e2b448 100644 --- a/src/php/ext/grpc/server.c +++ b/src/php/ext/grpc/server.c @@ -150,8 +150,8 @@ PHP_METHOD(Server, requestCall) { 1 TSRMLS_CC); goto cleanup; } - char *method_text = grpc_slice_as_c_string(details.method); - char *host_text = grpc_slice_as_c_string(details.host); + char *method_text = grpc_slice_to_c_string(details.method); + char *host_text = grpc_slice_to_c_string(details.host); php_grpc_add_property_string(result, "method", method_text, true); php_grpc_add_property_string(result, "host", host_text, true); gpr_free(method_text);