Skip to content
Snippets Groups Projects
Commit 75f8013b authored by Craig Tiller's avatar Craig Tiller
Browse files

Continue updating PHP

parent a25cbbc8
No related branches found
No related tags found
No related merge requests found
...@@ -475,8 +475,10 @@ PHP_METHOD(Call, startBatch) { ...@@ -475,8 +475,10 @@ PHP_METHOD(Call, startBatch) {
#endif #endif
PHP_GRPC_DELREF(array); PHP_GRPC_DELREF(array);
add_property_long(recv_status, "code", status); add_property_long(recv_status, "code", status);
php_grpc_add_property_string(recv_status, "details", status_details, char *status_details_text = grpc_dump_slice(status_details, GPR_DUMP_ASCII);
php_grpc_add_property_string(recv_status, "details", status_details_text,
true); true);
gpr_free(status_details_text);
add_property_zval(result, "status", recv_status); add_property_zval(result, "status", recv_status);
PHP_GRPC_DELREF(recv_status); PHP_GRPC_DELREF(recv_status);
break; break;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment