|
|
|
@ -241,7 +241,7 @@ PHP_METHOD(Call, __construct) { |
|
|
|
|
deadline_obj TSRMLS_CC); |
|
|
|
|
call->wrapped = grpc_channel_create_call( |
|
|
|
|
channel->wrapped, completion_queue, method, channel->target, |
|
|
|
|
deadline->wrapped); |
|
|
|
|
deadline->wrapped, NULL); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
@ -400,7 +400,8 @@ PHP_METHOD(Call, startBatch) { |
|
|
|
|
ops[op_num].flags = 0; |
|
|
|
|
op_num++; |
|
|
|
|
} |
|
|
|
|
error = grpc_call_start_batch(call->wrapped, ops, op_num, call->wrapped); |
|
|
|
|
error = grpc_call_start_batch(call->wrapped, ops, op_num, call->wrapped, |
|
|
|
|
NULL); |
|
|
|
|
if (error != GRPC_CALL_OK) { |
|
|
|
|
zend_throw_exception(spl_ce_LogicException, |
|
|
|
|
"start_batch was called incorrectly", |
|
|
|
@ -408,7 +409,7 @@ PHP_METHOD(Call, startBatch) { |
|
|
|
|
goto cleanup; |
|
|
|
|
} |
|
|
|
|
event = grpc_completion_queue_pluck(completion_queue, call->wrapped, |
|
|
|
|
gpr_inf_future(GPR_CLOCK_REALTIME)); |
|
|
|
|
gpr_inf_future(GPR_CLOCK_REALTIME), NULL); |
|
|
|
|
if (!event.success) { |
|
|
|
|
zend_throw_exception(spl_ce_LogicException, |
|
|
|
|
"The batch failed for some reason", |
|
|
|
@ -479,7 +480,7 @@ cleanup: |
|
|
|
|
PHP_METHOD(Call, cancel) { |
|
|
|
|
wrapped_grpc_call *call = |
|
|
|
|
(wrapped_grpc_call *)zend_object_store_get_object(getThis() TSRMLS_CC); |
|
|
|
|
grpc_call_cancel(call->wrapped); |
|
|
|
|
grpc_call_cancel(call->wrapped, NULL); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
static zend_function_entry call_methods[] = { |
|
|
|
|