Lines Matching refs:proto
184 …const zend_function *fe, zend_arg_info *fe_arg_info, const zend_function *proto, zend_arg_info *pr… in zend_do_perform_type_hint_check() argument
207 …== sizeof("parent")-1 && !strcasecmp(class_name, "parent") && proto->common.scope && proto->common… in zend_do_perform_type_hint_check()
208 proto_class_name = zend_string_copy(proto->common.scope->parent->name); in zend_do_perform_type_hint_check()
209 …} else if (class_name_len == sizeof("self")-1 && !strcasecmp(class_name, "self") && proto->common.… in zend_do_perform_type_hint_check()
210 proto_class_name = zend_string_copy(proto->common.scope->name); in zend_do_perform_type_hint_check()
248 …const zend_function *fe, zend_arg_info *fe_arg_info, const zend_function *proto, zend_arg_info *pr… in zend_do_perform_arg_type_hint_check() argument
260 return zend_do_perform_type_hint_check(fe, fe_arg_info, proto, proto_arg_info); in zend_do_perform_arg_type_hint_check()
264 …zend_do_perform_implementation_check(const zend_function *fe, const zend_function *proto) /* {{{ */ in zend_do_perform_implementation_check() argument
272 if (!proto || (!proto->common.arg_info && proto->common.type != ZEND_USER_FUNCTION)) { in zend_do_perform_implementation_check()
280 && ((proto->common.scope->ce_flags & ZEND_ACC_INTERFACE) == 0 in zend_do_perform_implementation_check()
281 && (proto->common.fn_flags & ZEND_ACC_ABSTRACT) == 0)) { in zend_do_perform_implementation_check()
286 if (proto->common.fn_flags & ZEND_ACC_PRIVATE) { in zend_do_perform_implementation_check()
291 if (proto->common.required_num_args < fe->common.required_num_args in zend_do_perform_implementation_check()
292 || proto->common.num_args > fe->common.num_args) { in zend_do_perform_implementation_check()
297 if ((proto->common.fn_flags & ZEND_ACC_RETURN_REFERENCE) in zend_do_perform_implementation_check()
302 if ((proto->common.fn_flags & ZEND_ACC_VARIADIC) in zend_do_perform_implementation_check()
311 num_args = proto->common.num_args; in zend_do_perform_implementation_check()
312 if (proto->common.fn_flags & ZEND_ACC_VARIADIC) { in zend_do_perform_implementation_check()
314 if (fe->common.num_args >= proto->common.num_args) { in zend_do_perform_implementation_check()
326 if (i < proto->common.num_args) { in zend_do_perform_implementation_check()
327 proto_arg_info = &proto->common.arg_info[i]; in zend_do_perform_implementation_check()
329 proto_arg_info = &proto->common.arg_info[proto->common.num_args]; in zend_do_perform_implementation_check()
332 if (!zend_do_perform_arg_type_hint_check(fe, fe_arg_info, proto, proto_arg_info)) { in zend_do_perform_implementation_check()
359 if (proto->common.fn_flags & ZEND_ACC_HAS_RETURN_TYPE) { in zend_do_perform_implementation_check()
365 …if (!zend_do_perform_type_hint_check(fe, fe->common.arg_info - 1, proto, proto->common.arg_info - … in zend_do_perform_implementation_check()
366 switch (ZEND_TYPE_CODE(proto->common.arg_info[-1].type)) { in zend_do_perform_implementation_check()
378 …if (ZEND_TYPE_ALLOW_NULL(fe->common.arg_info[-1].type) && !ZEND_TYPE_ALLOW_NULL(proto->common.arg_… in zend_do_perform_implementation_check()