diff options
author | 2016-12-09 09:34:28 -0800 | |
---|---|---|
committer | 2016-12-09 09:34:28 -0800 | |
commit | 75f8013ba65f5008660c8483800f325d0c1b80a9 (patch) | |
tree | 2c8b6125c00a0fbbc23d43a57482be098fcf50d5 /src/php/ext/grpc | |
parent | a25cbbc885ac77c2a2923c678a1cd0b87b90ef0e (diff) |
Continue updating PHP
Diffstat (limited to 'src/php/ext/grpc')
-rw-r--r-- | src/php/ext/grpc/call.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/php/ext/grpc/call.c b/src/php/ext/grpc/call.c index 736738c8e0..d679ae1545 100644 --- a/src/php/ext/grpc/call.c +++ b/src/php/ext/grpc/call.c @@ -475,8 +475,10 @@ PHP_METHOD(Call, startBatch) { #endif PHP_GRPC_DELREF(array); 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); + gpr_free(status_details_text); add_property_zval(result, "status", recv_status); PHP_GRPC_DELREF(recv_status); break; |