Lines Matching refs:proto

170 …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
188 if (!strcasecmp(class_name, "parent") && proto->common.scope) { in zend_do_perform_type_hint_check()
189 fe_class_name = zend_string_copy(proto->common.scope->name); in zend_do_perform_type_hint_check()
198 if (proto->type == ZEND_INTERNAL_FUNCTION) { in zend_do_perform_type_hint_check()
205 if (!strcasecmp(class_name, "parent") && proto->common.scope && proto->common.scope->parent) { in zend_do_perform_type_hint_check()
206 proto_class_name = zend_string_copy(proto->common.scope->parent->name); in zend_do_perform_type_hint_check()
207 } else if (!strcasecmp(class_name, "self") && proto->common.scope) { in zend_do_perform_type_hint_check()
208 proto_class_name = zend_string_copy(proto->common.scope->name); in zend_do_perform_type_hint_check()
250 …zend_do_perform_implementation_check(const zend_function *fe, const zend_function *proto) /* {{{ */ in zend_do_perform_implementation_check() argument
258 if (!proto || (!proto->common.arg_info && proto->common.type != ZEND_USER_FUNCTION)) { in zend_do_perform_implementation_check()
266 && ((proto->common.scope->ce_flags & ZEND_ACC_INTERFACE) == 0 in zend_do_perform_implementation_check()
267 && (proto->common.fn_flags & ZEND_ACC_ABSTRACT) == 0)) { in zend_do_perform_implementation_check()
272 if (proto->common.fn_flags & ZEND_ACC_PRIVATE) { in zend_do_perform_implementation_check()
277 if (proto->common.required_num_args < fe->common.required_num_args in zend_do_perform_implementation_check()
278 || proto->common.num_args > fe->common.num_args) { in zend_do_perform_implementation_check()
283 if ((proto->common.fn_flags & ZEND_ACC_RETURN_REFERENCE) in zend_do_perform_implementation_check()
288 if ((proto->common.fn_flags & ZEND_ACC_VARIADIC) in zend_do_perform_implementation_check()
297 num_args = proto->common.num_args; in zend_do_perform_implementation_check()
298 if (proto->common.fn_flags & ZEND_ACC_VARIADIC) { in zend_do_perform_implementation_check()
300 if (fe->common.num_args >= proto->common.num_args) { in zend_do_perform_implementation_check()
312 if (i < proto->common.num_args) { in zend_do_perform_implementation_check()
313 proto_arg_info = &proto->common.arg_info[i]; in zend_do_perform_implementation_check()
315 proto_arg_info = &proto->common.arg_info[proto->common.num_args]; in zend_do_perform_implementation_check()
318 if (!zend_do_perform_type_hint_check(fe, fe_arg_info, proto, proto_arg_info)) { in zend_do_perform_implementation_check()
338 if (proto->common.fn_flags & ZEND_ACC_HAS_RETURN_TYPE) { in zend_do_perform_implementation_check()
344 …if (!zend_do_perform_type_hint_check(fe, fe->common.arg_info - 1, proto, proto->common.arg_info - … in zend_do_perform_implementation_check()