Lines Matching refs:fptr
401 static ZEND_COLD void zend_append_type_hint(smart_str *str, const zend_function *fptr, zend_arg_inf… in zend_append_type_hint() argument
415 if (!strcasecmp(class_name, "self") && fptr->common.scope) { in zend_append_type_hint()
416 class_name = ZSTR_VAL(fptr->common.scope->name); in zend_append_type_hint()
417 class_name_len = ZSTR_LEN(fptr->common.scope->name); in zend_append_type_hint()
418 …} else if (!strcasecmp(class_name, "parent") && fptr->common.scope && fptr->common.scope->parent) { in zend_append_type_hint()
419 class_name = ZSTR_VAL(fptr->common.scope->parent->name); in zend_append_type_hint()
420 class_name_len = ZSTR_LEN(fptr->common.scope->parent->name); in zend_append_type_hint()
437 static ZEND_COLD zend_string *zend_get_function_declaration(const zend_function *fptr) /* {{{ */ in zend_get_function_declaration() argument
441 if (fptr->op_array.fn_flags & ZEND_ACC_RETURN_REFERENCE) { in zend_get_function_declaration()
445 if (fptr->common.scope) { in zend_get_function_declaration()
447 …smart_str_appendl(&str, ZSTR_VAL(fptr->common.scope->name), strlen(ZSTR_VAL(fptr->common.scope->na… in zend_get_function_declaration()
451 smart_str_append(&str, fptr->common.function_name); in zend_get_function_declaration()
454 if (fptr->common.arg_info) { in zend_get_function_declaration()
456 zend_arg_info *arg_info = fptr->common.arg_info; in zend_get_function_declaration()
458 required = fptr->common.required_num_args; in zend_get_function_declaration()
459 num_args = fptr->common.num_args; in zend_get_function_declaration()
460 if (fptr->common.fn_flags & ZEND_ACC_VARIADIC) { in zend_get_function_declaration()
464 zend_append_type_hint(&str, fptr, arg_info, 0); in zend_get_function_declaration()
477 if (fptr->type == ZEND_INTERNAL_FUNCTION) { in zend_get_function_declaration()
489 if (fptr->type == ZEND_USER_FUNCTION) { in zend_get_function_declaration()
493 zend_op *op = fptr->op_array.opcodes; in zend_get_function_declaration()
494 zend_op *end = op + fptr->op_array.last; in zend_get_function_declaration()
552 if (fptr->common.fn_flags & ZEND_ACC_HAS_RETURN_TYPE) { in zend_get_function_declaration()
554 zend_append_type_hint(&str, fptr, fptr->common.arg_info - 1, 1); in zend_get_function_declaration()