Lines Matching refs:iface

1339 static inline void do_implement_interface(zend_class_entry *ce, zend_class_entry *iface) /* {{{ */  in do_implement_interface()  argument
1341 …ce->ce_flags & ZEND_ACC_INTERFACE) && iface->interface_gets_implemented && iface->interface_gets_i… in do_implement_interface()
1342 …t implement interface %s", zend_get_object_type_uc(ce), ZSTR_VAL(ce->name), ZSTR_VAL(iface->name)); in do_implement_interface()
1345 ZEND_ASSERT(ce != iface); in do_implement_interface()
1349 static void zend_do_inherit_interfaces(zend_class_entry *ce, const zend_class_entry *iface) /* {{{ … in zend_do_inherit_interfaces() argument
1352 uint32_t i, ce_num, if_num = iface->num_interfaces; in zend_do_inherit_interfaces()
1365 entry = iface->interfaces[if_num]; in zend_do_inherit_interfaces()
1762 …zend_string *name, zend_class_constant *c, zend_class_entry *ce, zend_class_entry *iface) /* {{{ */ in do_inherit_iface_constant() argument
1769 if (iface->ce_flags & ZEND_ACC_IMMUTABLE) { in do_inherit_iface_constant()
1786 static void do_interface_implementation(zend_class_entry *ce, zend_class_entry *iface) /* {{{ */ in do_interface_implementation() argument
1806 ZEND_HASH_MAP_FOREACH_STR_KEY_PTR(&iface->constants_table, key, c) { in do_interface_implementation()
1807 do_inherit_iface_constant(key, c, ce, iface); in do_interface_implementation()
1810 ZEND_HASH_MAP_FOREACH_STR_KEY_PTR(&iface->function_table, key, func) { in do_interface_implementation()
1814 do_implement_interface(ce, iface); in do_interface_implementation()
1815 if (iface->num_interfaces) { in do_interface_implementation()
1816 zend_do_inherit_interfaces(ce, iface); in do_interface_implementation()
1821 ZEND_API void zend_do_implement_interface(zend_class_entry *ce, zend_class_entry *iface) /* {{{ */ in zend_do_implement_interface() argument
1835 } else if (ce->interfaces[i] == iface) { in zend_do_implement_interface()
1839 … cannot implement previously implemented interface %s", ZSTR_VAL(ce->name), ZSTR_VAL(iface->name)); in zend_do_implement_interface()
1845 ZEND_HASH_MAP_FOREACH_STR_KEY_PTR(&iface->constants_table, key, c) { in zend_do_implement_interface()
1856 ce->interfaces[ce->num_interfaces++] = iface; in zend_do_implement_interface()
1858 do_interface_implementation(ce, iface); in zend_do_implement_interface()
1865 zend_class_entry *iface; in zend_do_implement_interfaces() local
1873 iface = interfaces[num_parent_interfaces + i]; in zend_do_implement_interfaces()
1874 if (!(iface->ce_flags & ZEND_ACC_LINKED)) { in zend_do_implement_interfaces()
1875 add_dependency_obligation(ce, iface); in zend_do_implement_interfaces()
1877 if (UNEXPECTED(!(iface->ce_flags & ZEND_ACC_INTERFACE))) { in zend_do_implement_interfaces()
1879 …ROR, "%s cannot implement %s - it is not an interface", ZSTR_VAL(ce->name), ZSTR_VAL(iface->name)); in zend_do_implement_interfaces()
1883 if (interfaces[j] == iface) { in zend_do_implement_interfaces()
1889 ZSTR_VAL(iface->name)); in zend_do_implement_interfaces()
1893 ZEND_HASH_MAP_FOREACH_STR_KEY_PTR(&iface->constants_table, key, c) { in zend_do_implement_interfaces()
1897 iface = NULL; in zend_do_implement_interfaces()
1901 if (iface) { in zend_do_implement_interfaces()
1902 interfaces[num_interfaces] = iface; in zend_do_implement_interfaces()
3078 zend_class_entry *iface = zend_fetch_class_by_name( in zend_do_link_class() local
3082 if (!iface) { in zend_do_link_class()
3087 traits_and_interfaces[ce->num_traits + i] = iface; in zend_do_link_class()
3088 if (iface) { in zend_do_link_class()
3089 UPDATE_IS_CACHEABLE(iface); in zend_do_link_class()