Lines Matching refs:ce

1006 	zend_class_entry *ce = NULL;  in ZEND_FUNCTION()  local
1013 ce = zend_get_executed_scope(); in ZEND_FUNCTION()
1014 if (ce && ce->parent) { in ZEND_FUNCTION()
1015 RETURN_STR_COPY(ce->parent->name); in ZEND_FUNCTION()
1022 ce = Z_OBJ_P(arg)->ce; in ZEND_FUNCTION()
1024 ce = zend_lookup_class(Z_STR_P(arg)); in ZEND_FUNCTION()
1027 if (ce && ce->parent) { in ZEND_FUNCTION()
1028 RETURN_STR_COPY(ce->parent->name); in ZEND_FUNCTION()
1040 zend_class_entry *ce; in is_a_impl() local
1071 ce = zend_lookup_class_ex(class_name, NULL, ZEND_FETCH_CLASS_NO_AUTOLOAD); in is_a_impl()
1072 if (!ce) { in is_a_impl()
1075 if (only_subclass && instance_ce == ce) { in is_a_impl()
1078 retval = instanceof_function(instance_ce, ce); in is_a_impl()
1104 static void add_class_vars(zend_class_entry *scope, zend_class_entry *ce, int statics, zval *return… in add_class_vars() argument
1110 ZEND_HASH_FOREACH_STR_KEY_PTR(&ce->properties_info, key, prop_info) { in add_class_vars()
1112 !zend_check_protected(prop_info->ce, scope)) || in add_class_vars()
1114 prop_info->ce != scope)) { in add_class_vars()
1119 prop = &ce->default_static_members_table[prop_info->offset]; in add_class_vars()
1122 prop = &ce->default_properties_table[OBJ_PROP_TO_NUM(prop_info->offset)]; in add_class_vars()
1155 zend_class_entry *ce, *scope; in ZEND_FUNCTION() local
1161 ce = zend_lookup_class(class_name); in ZEND_FUNCTION()
1162 if (!ce) { in ZEND_FUNCTION()
1166 if (UNEXPECTED(!(ce->ce_flags & ZEND_ACC_CONSTANTS_UPDATED))) { in ZEND_FUNCTION()
1167 if (UNEXPECTED(zend_update_class_constants(ce) != SUCCESS)) { in ZEND_FUNCTION()
1172 add_class_vars(scope, ce, 0, return_value); in ZEND_FUNCTION()
1173 add_class_vars(scope, ce, 1, return_value); in ZEND_FUNCTION()
1200 …if (!zobj->ce->default_properties_count && properties == zobj->properties && !GC_IS_RECURSIVE(prop… in ZEND_FUNCTION()
1299 zend_class_entry *ce = NULL; in ZEND_FUNCTION() local
1309 ce = Z_OBJCE_P(klass); in ZEND_FUNCTION()
1311 ce = zend_lookup_class(Z_STR_P(klass)); in ZEND_FUNCTION()
1314 if (!ce) { in ZEND_FUNCTION()
1321 ZEND_HASH_FOREACH_STR_KEY_PTR(&ce->function_table, key, mptr) { in ZEND_FUNCTION()
1351 zend_class_entry *ce; in ZEND_FUNCTION() local
1360 ce = Z_OBJCE_P(klass); in ZEND_FUNCTION()
1362 if ((ce = zend_lookup_class(Z_STR_P(klass))) == NULL) { in ZEND_FUNCTION()
1370 func = zend_hash_find_ptr(&ce->function_table, lcname); in ZEND_FUNCTION()
1378 || !(func->common.fn_flags & ZEND_ACC_PRIVATE) || func->common.scope == ce); in ZEND_FUNCTION()
1407 zend_class_entry *ce; in ZEND_FUNCTION() local
1420 ce = zend_lookup_class(Z_STR_P(object)); in ZEND_FUNCTION()
1421 if (!ce) { in ZEND_FUNCTION()
1425 ce = Z_OBJCE_P(object); in ZEND_FUNCTION()
1431 property_info = zend_hash_find_ptr(&ce->properties_info, property); in ZEND_FUNCTION()
1434 || property_info->ce == ce)) { in ZEND_FUNCTION()
1452 zend_class_entry *ce; in class_exists_impl() local
1470 ce = zend_hash_find_ptr(EG(class_table), lcname); in class_exists_impl()
1473 ce = zend_lookup_class(name); in class_exists_impl()
1476 if (ce) { in class_exists_impl()
1477 RETURN_BOOL(((ce->ce_flags & flags) == flags) && !(ce->ce_flags & skip_flags)); in class_exists_impl()
1546 zend_class_entry *ce; in ZEND_FUNCTION() local
1554 ce = zend_lookup_class_ex(class_name, NULL, !autoload ? ZEND_FETCH_CLASS_NO_AUTOLOAD : 0); in ZEND_FUNCTION()
1556 if (ce) { in ZEND_FUNCTION()
1557 if (ce->type == ZEND_USER_CLASS) { in ZEND_FUNCTION()
1558 if (zend_register_class_alias_ex(alias_name, alias_name_len, ce, 0) == SUCCESS) { in ZEND_FUNCTION()
1561 … "Cannot declare %s %s, because the name is already in use", zend_get_object_type(ce), alias_name); in ZEND_FUNCTION()
1748 static void copy_class_or_interface_name(zval *array, zend_string *key, zend_class_entry *ce) /* {{… in copy_class_or_interface_name() argument
1750 if ((ce->refcount == 1 && !(ce->ce_flags & ZEND_ACC_IMMUTABLE)) || in copy_class_or_interface_name()
1751 same_name(key, ce->name)) { in copy_class_or_interface_name()
1752 key = ce->name; in copy_class_or_interface_name()
1761 zend_class_entry *ce; in get_declared_class_impl() local
1768 ZEND_HASH_FOREACH_STR_KEY_PTR(EG(class_table), key, ce) { in get_declared_class_impl()
1771 && (ce->ce_flags & flags) in get_declared_class_impl()
1772 && !(ce->ce_flags & skip_flags)) { in get_declared_class_impl()
1773 copy_class_or_interface_name(return_value, key, ce); in get_declared_class_impl()
2274 zend_function_name = zend_resolve_method_name(object ? object->ce : func->common.scope, func); in ZEND_FUNCTION()
2293 class_name = object->ce->name; in ZEND_FUNCTION()
2502 (object ? object->ce : func->common.scope), func) : in zend_fetch_debug_backtrace()
2517 ZVAL_STR_COPY(&tmp, object->ce->name); in zend_fetch_debug_backtrace()