Lines Matching refs:fe
184 static int zend_do_perform_type_hint_check(const zend_function *fe, zend_arg_info *fe_arg_info, con… in zend_do_perform_type_hint_check() argument
196 …en == sizeof("parent")-1 && !strcasecmp(class_name, "parent") && fe->common.scope && fe->common.sc… in zend_do_perform_type_hint_check()
197 fe_class_name = zend_string_copy(fe->common.scope->parent->name); in zend_do_perform_type_hint_check()
198 …} else if (class_name_len == sizeof("self")-1 && !strcasecmp(class_name, "self") && fe->common.sco… in zend_do_perform_type_hint_check()
199 fe_class_name = zend_string_copy(fe->common.scope->name); in zend_do_perform_type_hint_check()
216 if (fe->common.type != ZEND_USER_FUNCTION) { in zend_do_perform_type_hint_check()
248 static int zend_do_perform_arg_type_hint_check(const zend_function *fe, zend_arg_info *fe_arg_info,… 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 static zend_bool zend_do_perform_implementation_check(const zend_function *fe, const zend_function … in zend_do_perform_implementation_check() argument
279 if ((fe->common.fn_flags & ZEND_ACC_CTOR) 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()
298 && !(fe->common.fn_flags & ZEND_ACC_RETURN_REFERENCE)) { in zend_do_perform_implementation_check()
303 && !(fe->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()
315 num_args = fe->common.num_args; in zend_do_perform_implementation_check()
316 if (fe->common.fn_flags & ZEND_ACC_VARIADIC) { in zend_do_perform_implementation_check()
323 zend_arg_info *fe_arg_info = &fe->common.arg_info[i]; 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()
361 if (!(fe->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()
368 if (!zend_iterable_compatibility_check(fe->common.arg_info - 1)) { 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()
1096 static void zend_add_magic_methods(zend_class_entry* ce, zend_string* mname, zend_function* fe) /* … in zend_add_magic_methods() argument
1099 ce->clone = fe; in zend_add_magic_methods()
1104 ce->constructor = fe; fe->common.fn_flags |= ZEND_ACC_CTOR; in zend_add_magic_methods()
1106 ce->destructor = fe; fe->common.fn_flags |= ZEND_ACC_DTOR; in zend_add_magic_methods()
1108 ce->__get = fe; in zend_add_magic_methods()
1111 ce->__set = fe; in zend_add_magic_methods()
1114 ce->__call = fe; in zend_add_magic_methods()
1116 ce->__unset = fe; in zend_add_magic_methods()
1119 ce->__isset = fe; in zend_add_magic_methods()
1122 ce->__callstatic = fe; in zend_add_magic_methods()
1124 ce->__tostring = fe; in zend_add_magic_methods()
1126 ce->__debugInfo = fe; in zend_add_magic_methods()
1134 ce->constructor = fe; in zend_add_magic_methods()
1135 fe->common.fn_flags |= ZEND_ACC_CTOR; in zend_add_magic_methods()