Fixed errors in ActiveCall

pull/1134/head
murgatroid99 10 years ago
parent dad14be4eb
commit 685e4d958a
  1. 8
      src/php/lib/Grpc/ActiveCall.php
  2. 2
      third_party/openssl

@ -77,7 +77,7 @@ class ActiveCall {
*/ */
public function read() { public function read() {
$read_event = $this->call->start_batch([OP_RECV_MESSAGE => true]); $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 * and array $metadata members
*/ */
public function getStatus() { public function getStatus() {
$status_event = $this->call->start_batch([RECV_STATUS_ON_CLIENT => true]); $status_event = $this->call->start_batch([
return $status_event->data; OP_RECV_STATUS_ON_CLIENT => true
]);
return $status_event->status;
} }
} }

@ -1 +1 @@
Subproject commit 3df69d3aefde7671053d4e3c242b228e5d79c83f Subproject commit 4ac0329582829f5378d8078c8d314ad37db87736
Loading…
Cancel
Save