Merge pull request #5805 from stanley-cheung/php-fix-arg-type

PHP: return channel arg type
pull/5844/head
Jan Tattermusch 9 years ago
commit e4b419ebcc
  1. 2
      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,

Loading…
Cancel
Save