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
202 if (!strcasecmp(class_name, "parent") && proto->common.scope) { in zend_do_perform_type_hint_check()
203 fe_class_name = zend_string_copy(proto->common.scope->name); in zend_do_perform_type_hint_check()
212 if (proto->type == ZEND_INTERNAL_FUNCTION) { in zend_do_perform_type_hint_check()
219 if (!strcasecmp(class_name, "parent") && proto->common.scope && proto->common.scope->parent) { in zend_do_perform_type_hint_check()
220 proto_class_name = zend_string_copy(proto->common.scope->parent->name); in zend_do_perform_type_hint_check()
221 } else if (!strcasecmp(class_name, "self") && proto->common.scope) { in zend_do_perform_type_hint_check()
222 proto_class_name = zend_string_copy(proto->common.scope->name); in zend_do_perform_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_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 (proto->common.arg_info[-1].type_hint) { in zend_do_perform_implementation_check()
378 if (fe->common.arg_info[-1].allow_null && !proto->common.arg_info[-1].allow_null) { in zend_do_perform_implementation_check()