diff options
author | Stanley Cheung <stanleycheung@google.com> | 2016-03-17 16:49:57 -0700 |
---|---|---|
committer | Stanley Cheung <stanleycheung@google.com> | 2016-03-17 16:49:57 -0700 |
commit | 7895da25261c55d3688bf3cee4c2e3f6cc705cb9 (patch) | |
tree | b54781bbc967357d3961b4ec8b56556c58acafb9 /src/php | |
parent | 921f4b0a6e0c77f8c1d0f48b72d7087a21f5e311 (diff) |
php: return channel arg type
Diffstat (limited to 'src/php')
-rw-r--r-- | src/php/ext/grpc/channel.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/php/ext/grpc/channel.c b/src/php/ext/grpc/channel.c index f0bc7340ba..b7e7c26c10 100644 --- a/src/php/ext/grpc/channel.c +++ b/src/php/ext/grpc/channel.c @@ -110,9 +110,11 @@ void php_grpc_read_args_array(zval *args_array, grpc_channel_args *args) { switch (Z_TYPE_P(*data)) { case IS_LONG: args->args[args_index].value.integer = (int)Z_LVAL_P(*data); + args->args[args_index].type = GRPC_ARG_INTEGER; break; case IS_STRING: args->args[args_index].value.string = Z_STRVAL_P(*data); + args->args[args_index].type = GRPC_ARG_STRING; break; default: zend_throw_exception(spl_ce_InvalidArgumentException, |