Lines Matching refs:parent_ce

322 		zend_class_entry *parent_ce;  in unlinked_instanceof()  local
324 parent_ce = ce1->parent; in unlinked_instanceof()
326 parent_ce = zend_lookup_class_ex(ce1->parent_name, NULL, in unlinked_instanceof()
332 if (parent_ce && unlinked_instanceof(parent_ce, ce2)) { in unlinked_instanceof()
1770 ZEND_API void zend_do_inheritance_ex(zend_class_entry *ce, zend_class_entry *parent_ce, bool checke… in zend_do_inheritance_ex() argument
1778 if (UNEXPECTED(!(parent_ce->ce_flags & ZEND_ACC_INTERFACE))) { in zend_do_inheritance_ex()
1779 …MPILE_ERROR, "Interface %s cannot extend class %s", ZSTR_VAL(ce->name), ZSTR_VAL(parent_ce->name)); in zend_do_inheritance_ex()
1781 …} else if (UNEXPECTED(parent_ce->ce_flags & (ZEND_ACC_INTERFACE|ZEND_ACC_TRAIT|ZEND_ACC_FINAL|ZEND… in zend_do_inheritance_ex()
1784 if (parent_ce->ce_flags & ZEND_ACC_ENUM) { in zend_do_inheritance_ex()
1785 …(E_COMPILE_ERROR, "Class %s cannot extend enum %s", ZSTR_VAL(ce->name), ZSTR_VAL(parent_ce->name)); in zend_do_inheritance_ex()
1788 if (parent_ce->ce_flags & ZEND_ACC_FINAL) { in zend_do_inheritance_ex()
1789 …ILE_ERROR, "Class %s cannot extend final class %s", ZSTR_VAL(ce->name), ZSTR_VAL(parent_ce->name)); in zend_do_inheritance_ex()
1793 if ((parent_ce->ce_flags & ZEND_ACC_INTERFACE) || (parent_ce->ce_flags & ZEND_ACC_TRAIT)) { in zend_do_inheritance_ex()
1795 …ZSTR_VAL(ce->name), parent_ce->ce_flags & ZEND_ACC_INTERFACE ? "interface" : "trait", ZSTR_VAL(par… in zend_do_inheritance_ex()
1800 …if (UNEXPECTED((ce->ce_flags & ZEND_ACC_READONLY_CLASS) != (parent_ce->ce_flags & ZEND_ACC_READONL… in zend_do_inheritance_ex()
1803parent_ce->ce_flags & ZEND_ACC_READONLY_CLASS ? "readonly" : "non-readonly", ZSTR_VAL(parent_ce->n… in zend_do_inheritance_ex()
1810 ce->parent = parent_ce; in zend_do_inheritance_ex()
1811 ce->default_object_handlers = parent_ce->default_object_handlers; in zend_do_inheritance_ex()
1815 if (parent_ce->default_properties_count) { in zend_do_inheritance_ex()
1819 …zval *table = pemalloc(sizeof(zval) * (ce->default_properties_count + parent_ce->default_propertie… in zend_do_inheritance_ex()
1821 end = table + parent_ce->default_properties_count; in zend_do_inheritance_ex()
1832 …end = pemalloc(sizeof(zval) * parent_ce->default_properties_count, ce->type == ZEND_INTERNAL_CLASS… in zend_do_inheritance_ex()
1833 dst = end + parent_ce->default_properties_count; in zend_do_inheritance_ex()
1836 src = parent_ce->default_properties_table + parent_ce->default_properties_count; in zend_do_inheritance_ex()
1837 if (UNEXPECTED(parent_ce->type != ce->type)) { in zend_do_inheritance_ex()
1864 ce->default_properties_count += parent_ce->default_properties_count; in zend_do_inheritance_ex()
1867 if (parent_ce->default_static_members_count) { in zend_do_inheritance_ex()
1871 …zval *table = pemalloc(sizeof(zval) * (ce->default_static_members_count + parent_ce->default_stati… in zend_do_inheritance_ex()
1873 end = table + parent_ce->default_static_members_count; in zend_do_inheritance_ex()
1884 …end = pemalloc(sizeof(zval) * parent_ce->default_static_members_count, ce->type == ZEND_INTERNAL_C… in zend_do_inheritance_ex()
1885 dst = end + parent_ce->default_static_members_count; in zend_do_inheritance_ex()
1888 src = parent_ce->default_static_members_table + parent_ce->default_static_members_count; in zend_do_inheritance_ex()
1902 ce->default_static_members_count += parent_ce->default_static_members_count; in zend_do_inheritance_ex()
1914 property_info->offset += parent_ce->default_static_members_count; in zend_do_inheritance_ex()
1916 property_info->offset += parent_ce->default_properties_count * sizeof(zval); in zend_do_inheritance_ex()
1921 if (zend_hash_num_elements(&parent_ce->properties_info)) { in zend_do_inheritance_ex()
1924 zend_hash_num_elements(&parent_ce->properties_info), 0); in zend_do_inheritance_ex()
1926 ZEND_HASH_MAP_FOREACH_STR_KEY_PTR(&parent_ce->properties_info, key, property_info) { in zend_do_inheritance_ex()
1939 if (zend_hash_num_elements(&parent_ce->constants_table)) { in zend_do_inheritance_ex()
1944 zend_hash_num_elements(&parent_ce->constants_table), 0); in zend_do_inheritance_ex()
1946 ZEND_HASH_MAP_FOREACH_STR_KEY_PTR(&parent_ce->constants_table, key, c) { in zend_do_inheritance_ex()
1951 if (zend_hash_num_elements(&parent_ce->function_table)) { in zend_do_inheritance_ex()
1954 zend_hash_num_elements(&parent_ce->function_table), 0); in zend_do_inheritance_ex()
1964 ZEND_HASH_MAP_FOREACH_STR_KEY_PTR(&parent_ce->function_table, key, func) { in zend_do_inheritance_ex()
1972 if (parent_ce->num_interfaces) { in zend_do_inheritance_ex()
1973 zend_do_inherit_interfaces(ce, parent_ce); in zend_do_inheritance_ex()
1980 …ce->ce_flags |= parent_ce->ce_flags & (ZEND_HAS_STATIC_IN_METHODS | ZEND_ACC_HAS_TYPE_HINTS | ZEND… in zend_do_inheritance_ex()
3731 static inheritance_status zend_can_early_bind(zend_class_entry *ce, zend_class_entry *parent_ce) /*… in zend_can_early_bind() argument
3739 ZEND_HASH_MAP_FOREACH_STR_KEY_PTR(&parent_ce->function_table, key, parent_func) { in zend_can_early_bind()
3757 ZEND_HASH_MAP_FOREACH_STR_KEY_PTR(&parent_ce->properties_info, key, parent_info) { in zend_can_early_bind()
3775 ZEND_HASH_MAP_FOREACH_STR_KEY_PTR(&parent_ce->constants_table, key, parent_const) { in zend_can_early_bind()
3822 ZEND_API zend_class_entry *zend_try_early_bind(zend_class_entry *ce, zend_class_entry *parent_ce, z… in zend_try_early_bind() argument
3838 UPDATE_IS_CACHEABLE(parent_ce); in zend_try_early_bind()
3841 zend_class_entry *ret = zend_inheritance_cache_get(ce, parent_ce, NULL); in zend_try_early_bind()
3857 status = zend_can_early_bind(ce, parent_ce); in zend_try_early_bind()
3887 zend_do_inheritance_ex(ce, parent_ce, status == INHERITANCE_SUCCESS); in zend_try_early_bind()
3888 if (parent_ce && parent_ce->num_interfaces) { in zend_try_early_bind()
3889 zend_do_inherit_interfaces(ce, parent_ce); in zend_try_early_bind()
3913 new_ce = zend_inheritance_cache_add(ce, proto, parent_ce, NULL, ht); in zend_try_early_bind()