diff options
Diffstat (limited to 'src')
-rwxr-xr-x | src/php/lib/Grpc/ActiveCall.php | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/php/lib/Grpc/ActiveCall.php b/src/php/lib/Grpc/ActiveCall.php index af4dca50d7..9e048ae03b 100755 --- a/src/php/lib/Grpc/ActiveCall.php +++ b/src/php/lib/Grpc/ActiveCall.php @@ -77,7 +77,7 @@ class ActiveCall { */ public function read() { $read_event = $this->call->start_batch([OP_RECV_MESSAGE => true]); - return $read_event->data; + return $read_event->message; } /** @@ -102,7 +102,9 @@ class ActiveCall { * and array $metadata members */ public function getStatus() { - $status_event = $this->call->start_batch([RECV_STATUS_ON_CLIENT => true]); - return $status_event->data; + $status_event = $this->call->start_batch([ + OP_RECV_STATUS_ON_CLIENT => true + ]); + return $status_event->status; } } |