Continue updating PHP

reviewable/pr8842/r2
Craig Tiller 8 years ago
parent d2b0014430
commit cdfd15cc1a
  1. 8
      src/php/ext/grpc/server.c

@ -149,8 +149,12 @@ PHP_METHOD(Server, requestCall) {
1 TSRMLS_CC);
goto cleanup;
}
php_grpc_add_property_string(result, "method", details.method, true);
php_grpc_add_property_string(result, "host", details.host, true);
char *method_text = grpc_slice_as_c_string(details.method);
char *host_text = grpc_slice_as_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);
#if PHP_MAJOR_VERSION < 7
add_property_zval(result, "call", grpc_php_wrap_call(call, true TSRMLS_CC));
add_property_zval(result, "absolute_deadline",

Loading…
Cancel
Save