Merge pull request #12703 from thinkerou/fix_bug

PHP: fix call flag been reset bug
pull/14238/head
Zhouyihai Ding 7 years ago committed by GitHub
commit 1952018a02
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      src/php/ext/grpc/call.c

@ -316,6 +316,11 @@ PHP_METHOD(Call, startBatch) {
"batch keys must be integers", 1 TSRMLS_CC);
goto cleanup;
}
ops[op_num].op = (grpc_op_type)index;
ops[op_num].flags = 0;
ops[op_num].reserved = NULL;
switch(index) {
case GRPC_OP_SEND_INITIAL_METADATA:
if (!create_metadata_array(value, &metadata)) {
@ -429,9 +434,6 @@ PHP_METHOD(Call, startBatch) {
"Unrecognized key in batch", 1 TSRMLS_CC);
goto cleanup;
}
ops[op_num].op = (grpc_op_type)index;
ops[op_num].flags = 0;
ops[op_num].reserved = NULL;
op_num++;
PHP_GRPC_HASH_FOREACH_END()

Loading…
Cancel
Save