aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/php/ext/grpc/server.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/php/ext/grpc/server.c')
-rw-r--r--src/php/ext/grpc/server.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/php/ext/grpc/server.c b/src/php/ext/grpc/server.c
index 9ac5d2a3c3..2217a4f9a8 100644
--- a/src/php/ext/grpc/server.c
+++ b/src/php/ext/grpc/server.c
@@ -49,8 +49,6 @@
#include <grpc/grpc.h>
#include <grpc/grpc_security.h>
-#include <grpc/slice.h>
-#include <grpc/support/alloc.h>
#include "completion_queue.h"
#include "server.h"
@@ -151,12 +149,8 @@ PHP_METHOD(Server, requestCall) {
1 TSRMLS_CC);
goto cleanup;
}
- 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);
- gpr_free(host_text);
+ php_grpc_add_property_string(result, "method", details.method, true);
+ php_grpc_add_property_string(result, "host", details.host, true);
#if PHP_MAJOR_VERSION < 7
add_property_zval(result, "call", grpc_php_wrap_call(call, true TSRMLS_CC));
add_property_zval(result, "absolute_deadline",