Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
Grpc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tci-gateway-module
Grpc
Commits
a25cbbc8
Commit
a25cbbc8
authored
8 years ago
by
Craig Tiller
Browse files
Options
Downloads
Patches
Plain Diff
Convert more of PHP
parent
3bfb0048
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/php/ext/grpc/call.c
+3
-6
3 additions, 6 deletions
src/php/ext/grpc/call.c
with
3 additions
and
6 deletions
src/php/ext/grpc/call.c
+
3
−
6
View file @
a25cbbc8
...
@@ -271,8 +271,7 @@ PHP_METHOD(Call, startBatch) {
...
@@ -271,8 +271,7 @@ PHP_METHOD(Call, startBatch) {
grpc_metadata_array
recv_metadata
;
grpc_metadata_array
recv_metadata
;
grpc_metadata_array
recv_trailing_metadata
;
grpc_metadata_array
recv_trailing_metadata
;
grpc_status_code
status
;
grpc_status_code
status
;
char
*
status_details
=
NULL
;
grpc_slice
status_details
;
size_t
status_details_capacity
=
0
;
grpc_byte_buffer
*
message
;
grpc_byte_buffer
*
message
;
int
cancelled
;
int
cancelled
;
grpc_call_error
error
;
grpc_call_error
error
;
...
@@ -384,8 +383,8 @@ PHP_METHOD(Call, startBatch) {
...
@@ -384,8 +383,8 @@ PHP_METHOD(Call, startBatch) {
1
TSRMLS_CC
);
1
TSRMLS_CC
);
goto
cleanup
;
goto
cleanup
;
}
}
ops
[
op_num
].
data
.
send_status_from_server
.
status_details
=
grpc_slice
send_status_details
=
grpc_slice_from_copied_string
(
Z_STRVAL_P
(
inner_value
));
Z_STRVAL_P
(
inner_value
)
;
ops
[
op_num
].
data
.
send_status_from_server
.
status_details
=
&
send_status_details
;
}
else
{
}
else
{
zend_throw_exception
(
spl_ce_InvalidArgumentException
,
zend_throw_exception
(
spl_ce_InvalidArgumentException
,
"String status details is required"
,
"String status details is required"
,
...
@@ -405,8 +404,6 @@ PHP_METHOD(Call, startBatch) {
...
@@ -405,8 +404,6 @@ PHP_METHOD(Call, startBatch) {
ops
[
op_num
].
data
.
recv_status_on_client
.
status
=
&
status
;
ops
[
op_num
].
data
.
recv_status_on_client
.
status
=
&
status
;
ops
[
op_num
].
data
.
recv_status_on_client
.
status_details
=
ops
[
op_num
].
data
.
recv_status_on_client
.
status_details
=
&
status_details
;
&
status_details
;
ops
[
op_num
].
data
.
recv_status_on_client
.
status_details_capacity
=
&
status_details_capacity
;
break
;
break
;
case
GRPC_OP_RECV_CLOSE_ON_SERVER
:
case
GRPC_OP_RECV_CLOSE_ON_SERVER
:
ops
[
op_num
].
data
.
recv_close_on_server
.
cancelled
=
&
cancelled
;
ops
[
op_num
].
data
.
recv_close_on_server
.
cancelled
=
&
cancelled
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment