Lines Matching refs:fci
762 zend_fcall_info *fci = va_arg(*va, zend_fcall_info *); in zend_parse_arg_impl() local
767 fci->size = 0; in zend_parse_arg_impl()
772 if (zend_fcall_info_init(arg, 0, fci, fcc, NULL, &is_callable_error) == SUCCESS) { in zend_parse_arg_impl()
3504 ZEND_API int zend_fcall_info_init(zval *callable, uint32_t check_flags, zend_fcall_info *fci, zend_… in zend_fcall_info_init() argument
3510 fci->size = sizeof(*fci); in zend_fcall_info_init()
3511 fci->object = fcc->object; in zend_fcall_info_init()
3512 ZVAL_COPY_VALUE(&fci->function_name, callable); in zend_fcall_info_init()
3513 fci->retval = NULL; in zend_fcall_info_init()
3514 fci->param_count = 0; in zend_fcall_info_init()
3515 fci->params = NULL; in zend_fcall_info_init()
3516 fci->no_separation = 1; in zend_fcall_info_init()
3522 ZEND_API void zend_fcall_info_args_clear(zend_fcall_info *fci, int free_mem) /* {{{ */ in zend_fcall_info_args_clear() argument
3524 if (fci->params) { in zend_fcall_info_args_clear()
3525 zval *p = fci->params; in zend_fcall_info_args_clear()
3526 zval *end = p + fci->param_count; in zend_fcall_info_args_clear()
3533 efree(fci->params); in zend_fcall_info_args_clear()
3534 fci->params = NULL; in zend_fcall_info_args_clear()
3537 fci->param_count = 0; in zend_fcall_info_args_clear()
3541 ZEND_API void zend_fcall_info_args_save(zend_fcall_info *fci, int *param_count, zval **params) /* {… in zend_fcall_info_args_save() argument
3543 *param_count = fci->param_count; in zend_fcall_info_args_save()
3544 *params = fci->params; in zend_fcall_info_args_save()
3545 fci->param_count = 0; in zend_fcall_info_args_save()
3546 fci->params = NULL; in zend_fcall_info_args_save()
3550 ZEND_API void zend_fcall_info_args_restore(zend_fcall_info *fci, int param_count, zval *params) /* … in zend_fcall_info_args_restore() argument
3552 zend_fcall_info_args_clear(fci, 1); in zend_fcall_info_args_restore()
3553 fci->param_count = param_count; in zend_fcall_info_args_restore()
3554 fci->params = params; in zend_fcall_info_args_restore()
3558 ZEND_API int zend_fcall_info_args_ex(zend_fcall_info *fci, zend_function *func, zval *args) /* {{{ … in zend_fcall_info_args_ex() argument
3563 zend_fcall_info_args_clear(fci, !args); in zend_fcall_info_args_ex()
3573 fci->param_count = zend_hash_num_elements(Z_ARRVAL_P(args)); in zend_fcall_info_args_ex()
3574 fci->params = params = (zval *) erealloc(fci->params, fci->param_count * sizeof(zval)); in zend_fcall_info_args_ex()
3591 ZEND_API int zend_fcall_info_args(zend_fcall_info *fci, zval *args) /* {{{ */ in zend_fcall_info_args() argument
3593 return zend_fcall_info_args_ex(fci, NULL, args); in zend_fcall_info_args()
3597 ZEND_API int zend_fcall_info_argp(zend_fcall_info *fci, int argc, zval *argv) /* {{{ */ in zend_fcall_info_argp() argument
3605 zend_fcall_info_args_clear(fci, !argc); in zend_fcall_info_argp()
3608 fci->param_count = argc; in zend_fcall_info_argp()
3609 fci->params = (zval *) erealloc(fci->params, fci->param_count * sizeof(zval)); in zend_fcall_info_argp()
3612 ZVAL_COPY(&fci->params[i], &argv[i]); in zend_fcall_info_argp()
3620 ZEND_API int zend_fcall_info_argv(zend_fcall_info *fci, int argc, va_list *argv) /* {{{ */ in zend_fcall_info_argv() argument
3629 zend_fcall_info_args_clear(fci, !argc); in zend_fcall_info_argv()
3632 fci->param_count = argc; in zend_fcall_info_argv()
3633 fci->params = (zval *) erealloc(fci->params, fci->param_count * sizeof(zval)); in zend_fcall_info_argv()
3637 ZVAL_COPY(&fci->params[i], arg); in zend_fcall_info_argv()
3645 ZEND_API int zend_fcall_info_argn(zend_fcall_info *fci, int argc, ...) /* {{{ */ in zend_fcall_info_argn() argument
3651 ret = zend_fcall_info_argv(fci, argc, &argv); in zend_fcall_info_argn()
3658 ZEND_API int zend_fcall_info_call(zend_fcall_info *fci, zend_fcall_info_cache *fcc, zval *retval_pt… in zend_fcall_info_call() argument
3663 fci->retval = retval_ptr ? retval_ptr : &retval; in zend_fcall_info_call()
3665 zend_fcall_info_args_save(fci, &org_count, &org_params); in zend_fcall_info_call()
3666 zend_fcall_info_args(fci, args); in zend_fcall_info_call()
3668 result = zend_call_function(fci, fcc); in zend_fcall_info_call()
3674 zend_fcall_info_args_restore(fci, org_count, org_params); in zend_fcall_info_call()