diff --git a/src/php/ext/grpc/server.c b/src/php/ext/grpc/server.c
index 6f8e1e4cd807203407e1d97dfdb33c5f2fa7640a..55a61e2b448792218035527343007f733d54d656 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);