Lines Matching refs:cur_arg_info

621 static char * zend_verify_internal_arg_class_kind(const zend_internal_arg_info *cur_arg_info, char …  in zend_verify_internal_arg_class_kind()  argument
626 ZSTR_ALLOCA_INIT(key, cur_arg_info->class_name, strlen(cur_arg_info->class_name), use_heap); in zend_verify_internal_arg_class_kind()
630 *class_name = (*pce) ? ZSTR_VAL((*pce)->name) : (char*)cur_arg_info->class_name; in zend_verify_internal_arg_class_kind()
638 … zend_always_inline zend_class_entry* zend_verify_arg_class_kind(const zend_arg_info *cur_arg_info) in zend_verify_arg_class_kind() argument
640 …return zend_fetch_class(cur_arg_info->class_name, (ZEND_FETCH_CLASS_AUTO | ZEND_FETCH_CLASS_NO_AUT… in zend_verify_arg_class_kind()
751 zend_internal_arg_info *cur_arg_info; in zend_verify_internal_arg_type() local
756 cur_arg_info = &zf->internal_function.arg_info[arg_num-1]; in zend_verify_internal_arg_type()
758 cur_arg_info = &zf->internal_function.arg_info[zf->internal_function.num_args]; in zend_verify_internal_arg_type()
763 if (cur_arg_info->type_hint) { in zend_verify_internal_arg_type()
765 if (EXPECTED(cur_arg_info->type_hint == Z_TYPE_P(arg))) { in zend_verify_internal_arg_type()
766 if (cur_arg_info->class_name) { in zend_verify_internal_arg_type()
767 …need_msg = zend_verify_internal_arg_class_kind((zend_internal_arg_info*)cur_arg_info, &class_name,… in zend_verify_internal_arg_type()
773 } else if (Z_TYPE_P(arg) != IS_NULL || !cur_arg_info->allow_null) { in zend_verify_internal_arg_type()
774 if (cur_arg_info->class_name) { in zend_verify_internal_arg_type()
775 …need_msg = zend_verify_internal_arg_class_kind((zend_internal_arg_info*)cur_arg_info, &class_name,… in zend_verify_internal_arg_type()
778 } else if (cur_arg_info->type_hint == IS_CALLABLE) { in zend_verify_internal_arg_type()
783 } else if (cur_arg_info->type_hint == _IS_BOOL && in zend_verify_internal_arg_type()
786 …} else if (UNEXPECTED(!zend_verify_scalar_type_hint(cur_arg_info->type_hint, arg, ZEND_CALL_USES_S… in zend_verify_internal_arg_type()
787 …zend_verify_arg_error(zf, arg_num, "be of the type ", zend_get_type_by_const(cur_arg_info->type_hi… in zend_verify_internal_arg_type()
797 zend_arg_info *cur_arg_info; in zend_verify_arg_type() local
802 cur_arg_info = &zf->common.arg_info[arg_num-1]; in zend_verify_arg_type()
804 cur_arg_info = &zf->common.arg_info[zf->common.num_args]; in zend_verify_arg_type()
809 if (cur_arg_info->type_hint) { in zend_verify_arg_type()
811 if (EXPECTED(cur_arg_info->type_hint == Z_TYPE_P(arg))) { in zend_verify_arg_type()
812 if (cur_arg_info->class_name) { in zend_verify_arg_type()
816 ce = zend_verify_arg_class_kind(cur_arg_info); in zend_verify_arg_type()
818 …zend_verify_arg_error(zf, arg_num, "be an instance of ", ZSTR_VAL(cur_arg_info->class_name), "inst… in zend_verify_arg_type()
831 …} else if (Z_TYPE_P(arg) != IS_NULL || !(cur_arg_info->allow_null || (default_value && is_null_con… in zend_verify_arg_type()
832 if (cur_arg_info->class_name) { in zend_verify_arg_type()
836 ce = zend_verify_arg_class_kind(cur_arg_info); in zend_verify_arg_type()
839 …zend_verify_arg_error(zf, arg_num, "be an instance of ", ZSTR_VAL(cur_arg_info->class_name), "", z… in zend_verify_arg_type()
849 } else if (cur_arg_info->type_hint == IS_CALLABLE) { in zend_verify_arg_type()
854 } else if (cur_arg_info->type_hint == _IS_BOOL && in zend_verify_arg_type()
857 …} else if (UNEXPECTED(!zend_verify_scalar_type_hint(cur_arg_info->type_hint, arg, ZEND_ARG_USES_ST… in zend_verify_arg_type()
858 …zend_verify_arg_error(zf, arg_num, "be of the type ", zend_get_type_by_const(cur_arg_info->type_hi… in zend_verify_arg_type()
868 zend_arg_info *cur_arg_info; in zend_verify_missing_arg_type() local
873 cur_arg_info = &zf->common.arg_info[arg_num-1]; in zend_verify_missing_arg_type()
875 cur_arg_info = &zf->common.arg_info[zf->common.num_args]; in zend_verify_missing_arg_type()
880 if (cur_arg_info->type_hint) { in zend_verify_missing_arg_type()
881 if (cur_arg_info->class_name) { in zend_verify_missing_arg_type()
885 ce = zend_verify_arg_class_kind(cur_arg_info); in zend_verify_missing_arg_type()
887 …zend_verify_arg_error(zf, arg_num, "be an instance of ", ZSTR_VAL(cur_arg_info->class_name), "none… in zend_verify_missing_arg_type()
896 } else if (cur_arg_info->type_hint == IS_CALLABLE) { in zend_verify_missing_arg_type()
899 …zend_verify_arg_error(zf, arg_num, "be of the type ", zend_get_type_by_const(cur_arg_info->type_hi… in zend_verify_missing_arg_type()