/PHP-7.4/ |
H A D | .gdbinit | 420 set $ce = $arg0 421 if $ce->ce_flags & 0x10 || $ce->ce_flags & 0x20 424 if $ce->ce_flags & 0x40 429 if $ce->parent != 0 443 set $ce = $ce->parent 447 set $ce = $arg0 450 set $ce = $ce->interfaces[0] 453 set $ce = 0 458 set $ce = $arg0 460 while $ce != 0 [all …]
|
H A D | UPGRADING.INTERNALS | 57 check property_info->ce (in the same way as with methods).
|
/PHP-7.4/Zend/tests/ |
H A D | nested_method_and_function.phpt | 2 active_class_entry must be always correct (__METHOD__ should not depend on declaring function ce)
|
/PHP-7.4/Zend/ |
H A D | zend.c | 964 zend_class_entry *ce; in zend_resolve_property_types() local 967 ZEND_HASH_FOREACH_PTR(CG(class_table), ce) { in zend_resolve_property_types() 968 if (ce->type != ZEND_INTERNAL_CLASS) { in zend_resolve_property_types() 972 if (UNEXPECTED(ZEND_CLASS_HAS_TYPE_HINTS(ce))) { in zend_resolve_property_types() 973 ZEND_HASH_FOREACH_PTR(&ce->properties_info, prop_info) { in zend_resolve_property_types() 986 ce->ce_flags |= ZEND_ACC_PROPERTY_TYPES_RESOLVED; in zend_resolve_property_types()
|
H A D | zend.h | 154 zend_object_iterator *(*get_iterator)(zend_class_entry *ce, zval *object, int by_ref); 155 zend_function *(*get_static_method)(zend_class_entry *ce, zend_string* method); 159 …int (*unserialize)(zval *object, zend_class_entry *ce, const unsigned char *buf, size_t buf_len, z…
|
H A D | zend_API.c | 754 if (ce) { in zend_parse_arg_impl() 1118 if (ce && !instanceof_function(Z_OBJCE_P(this_ptr), ce)) { in zend_parse_method_parameters() 1150 if (ce && !instanceof_function(Z_OBJCE_P(this_ptr), ce)) { in zend_parse_method_parameters_ex() 1217 ce = class_type; in zend_update_class_constants() 1218 while (ce) { in zend_update_class_constants() 1220 if (prop_info->ce == ce) { in zend_update_class_constants() 1248 ce = ce->parent; in zend_update_class_constants() 2986 fcc->called_scope = fcc->object ? fcc->object->ce : ce; in zend_is_callable_check_class() 3758 …ce->default_properties_table = perealloc(ce->default_properties_table, sizeof(zval) * ce->default_… in zend_declare_typed_property() 3799 property_info->ce = ce; in zend_declare_typed_property() [all …]
|
H A D | zend_API.h | 232 #define CE_STATIC_MEMBERS(ce) \ argument 233 ((zval*)ZEND_MAP_PTR_GET((ce)->static_members_table)) 289 #define zend_register_class_alias(name, ce) \ argument 290 zend_register_class_alias_ex(name, sizeof(name)-1, ce, 1) 291 #define zend_register_ns_class_alias(ns, name, ce) \ argument 292 zend_register_class_alias_ex(ZEND_NS_NAME(ns, name), sizeof(ZEND_NS_NAME(ns, name))-1, ce, 1) 384 ZEND_API int object_init_ex(zval *arg, zend_class_entry *ce); 552 ZEND_API zend_string *zend_find_alias_name(zend_class_entry *ce, zend_string *name); 553 ZEND_API zend_string *zend_resolve_method_name(zend_class_entry *ce, zend_function *f); 555 ZEND_API ZEND_COLD const char *zend_get_object_type(const zend_class_entry *ce); [all …]
|
H A D | zend_builtin_functions.c | 1014 if (ce && ce->parent) { in ZEND_FUNCTION() 1022 ce = Z_OBJ_P(arg)->ce; in ZEND_FUNCTION() 1027 if (ce && ce->parent) { in ZEND_FUNCTION() 1072 if (!ce) { in is_a_impl() 1162 if (!ce) { in ZEND_FUNCTION() 1314 if (!ce) { in ZEND_FUNCTION() 1421 if (!ce) { in ZEND_FUNCTION() 1434 || property_info->ce == ce)) { in ZEND_FUNCTION() 1476 if (ce) { in class_exists_impl() 1556 if (ce) { in ZEND_FUNCTION() [all …]
|
H A D | zend_closures.c | 175 fci_cache.called_scope = newobj->ce; in ZEND_METHOD() 206 zend_class_entry *ce, *called_scope; in ZEND_METHOD() local 216 ce = Z_OBJCE_P(scope_arg); in ZEND_METHOD() 218 ce = NULL; in ZEND_METHOD() 223 ce = closure->func.common.scope; in ZEND_METHOD() 232 ce = closure->func.common.scope; in ZEND_METHOD() 242 called_scope = ce; in ZEND_METHOD() 294 if (fcc.object && fcc.object->ce == zend_ce_closure in zend_create_closure_from_callable() 652 zend_class_entry ce; in zend_register_closure_ce() local 654 INIT_CLASS_ENTRY(ce, "Closure", closure_functions); in zend_register_closure_ce() [all …]
|
H A D | zend_compile.c | 1078 if (ce) { in do_bind_class() 1383 if (!ce) { in zend_ensure_valid_class_fetch_type() 1445 zend_class_entry *ce = c->ce; in zend_verify_ct_const_access() local 1454 ce = ce->parent; in zend_verify_ct_const_access() 1456 … ce = zend_hash_find_ptr_lc(CG(class_table), ZSTR_VAL(ce->parent_name), ZSTR_LEN(ce->parent_name)); in zend_verify_ct_const_access() 1457 if (!ce) { in zend_verify_ct_const_access() 1477 if (ce) { in zend_try_ct_eval_class_const() 4018 if (ce) { in zend_compile_static_call() 6325 …ce->trait_names[ce->num_traits].lc_name = zend_string_tolower(ce->trait_names[ce->num_traits].name… in zend_compile_use_trait() 6972 if (ce) { in zend_try_ct_eval_magic_const() [all …]
|
H A D | zend_compile.h | 367 zend_class_entry *ce; member 383 zend_class_entry *ce; member 790 ZEND_API void zend_cleanup_internal_class_data(zend_class_entry *ce); 830 ZEND_API void zend_initialize_class_data(zend_class_entry *ce, zend_bool nullify_handlers);
|
H A D | zend_constants.c | 238 return (c->ce == scope); in zend_verify_const_access() 241 return zend_check_protected(c->ce, scope); in zend_verify_const_access() 326 zend_class_entry *ce = NULL; in zend_get_constant_ex() local 351 ce = scope; in zend_get_constant_ex() 360 ce = scope->parent; in zend_get_constant_ex() 363 ce = zend_get_called_scope(EG(current_execute_data)); in zend_get_constant_ex() 364 if (UNEXPECTED(!ce)) { in zend_get_constant_ex() 369 ce = zend_fetch_class(class_name, flags); in zend_get_constant_ex() 371 if (ce) { in zend_get_constant_ex() 372 c = zend_hash_find_ptr(&ce->constants_table, constant_name); in zend_get_constant_ex() [all …]
|
H A D | zend_constants.h | 78 ZEND_API int zend_verify_const_access(zend_class_constant *c, zend_class_entry *ce);
|
H A D | zend_exceptions.c | 287 zend_class_entry *ce; in ZEND_METHOD() local 290 ce = Z_OBJCE(EX(This)); in ZEND_METHOD() 292 ce = Z_CE(EX(This)); in ZEND_METHOD() 294 ce = base_ce; in ZEND_METHOD() 353 zend_class_entry *ce; in ZEND_METHOD() local 356 ce = Z_OBJCE(EX(This)); in ZEND_METHOD() 358 ce = Z_CE(EX(This)); in ZEND_METHOD() 360 ce = zend_ce_error_exception; in ZEND_METHOD() 829 zend_class_entry ce; in zend_register_default_exception() local 875 INIT_CLASS_ENTRY(ce, "TypeError", NULL); in zend_register_default_exception() [all …]
|
H A D | zend_execute.c | 727 if (ce) { in zend_verify_type_error_common() 922 zend_class_entry *ce; in zend_resolve_class_type() local 931 ce = self_ce; in zend_resolve_class_type() 1071 zend_class_entry *ce; in zend_verify_arg_type() local 1081 ce = NULL; in zend_verify_arg_type() 1093 zend_class_entry *ce; in zend_verify_recv_arg_type() local 1098 ce = NULL; in zend_verify_recv_arg_type() 1110 zend_class_entry *ce; in zend_verify_variadic_arg_type() local 1116 ce = NULL; in zend_verify_variadic_arg_type() 1261 if (ce) { in zend_verify_missing_return_type() [all …]
|
H A D | zend_execute.h | 350 #define CACHED_POLYMORPHIC_PTR(num, ce) \ argument 351 (EXPECTED(((void**)((char*)EX(run_time_cache) + (num)))[0] == (void*)(ce)) ? \ 355 #define CACHE_POLYMORPHIC_PTR(num, ce, ptr) do { \ argument 357 slot[0] = (ce); \ 368 #define CACHED_POLYMORPHIC_PTR_EX(slot, ce) \ argument 369 (EXPECTED((slot)[0] == (ce)) ? (slot)[1] : NULL) 371 #define CACHE_POLYMORPHIC_PTR_EX(slot, ce, ptr) do { \ argument 372 (slot)[0] = (ce); \ 400 #define ZEND_CLASS_HAS_TYPE_HINTS(ce) ((ce->ce_flags & ZEND_ACC_HAS_TYPE_HINTS) == ZEND_ACC_HAS_TYP… argument
|
H A D | zend_execute_API.c | 453 *space = ce ? "::" : ""; in get_active_class_name() 455 return ce ? ZSTR_VAL(ce->name) : ""; in get_active_class_name() 896 zend_class_entry *ce = NULL; in zend_lookup_class_ex() local 930 return ce; in zend_lookup_class_ex() 934 return ce; in zend_lookup_class_ex() 1018 return ce; in zend_lookup_class_ex() 1395 if (UNEXPECTED(!ce)) { in zend_fetch_class() 1399 return ce; in zend_fetch_class() 1423 return ce; in zend_fetch_class() 1429 zend_class_entry *ce; in zend_fetch_class_by_name() local [all …]
|
H A D | zend_gc.c | 397 obj->ce->name->val, obj->handle); in gc_trace_ref() 1182 || obj->ce->destructor != NULL)) { in gc_collect_white() 1492 || obj->ce->destructor) { in zend_gc_collect_cycles()
|
H A D | zend_generators.c | 1187 zend_object_iterator *zend_generator_get_iterator(zend_class_entry *ce, zval *object, int by_ref) /… in zend_generator_get_iterator() argument 1239 zend_class_entry ce; in zend_register_generator_ce() local 1241 INIT_CLASS_ENTRY(ce, "Generator", generator_functions); in zend_register_generator_ce() 1242 zend_ce_generator = zend_register_internal_class(&ce); in zend_register_generator_ce() 1259 INIT_CLASS_ENTRY(ce, "ClosedGeneratorException", NULL); in zend_register_generator_ce() 1260 zend_ce_ClosedGeneratorException = zend_register_internal_class_ex(&ce, zend_ce_exception); in zend_register_generator_ce()
|
H A D | zend_inheritance.c | 235 if (ce) { in lookup_class() 236 return ce; in lookup_class() 247 if (ce && class_visible(ce)) { in lookup_class() 301 if (ce && unlinked_instanceof(ce, ce2)) { in unlinked_instanceof() 1042 ce->interfaces[ce->num_interfaces++] = entry; in zend_do_inherit_interfaces() 1292 if (property_info->ce == ce) { in zend_do_inheritance_ex() 1357 if (old_constant->ce != parent_constant->ce) { in do_inherit_constant_check() 1439 ce->interfaces[ce->num_interfaces++] = iface; in zend_do_implement_interface() 1515 if (ce->constructor && (!ce->parent || ce->constructor != ce->parent->constructor)) { in zend_add_magic_methods() 1545 if (ce->constructor && (!ce->parent || ce->constructor != ce->parent->constructor)) { in zend_add_magic_methods() [all …]
|
H A D | zend_inheritance.h | 27 ZEND_API void zend_do_implement_interface(zend_class_entry *ce, zend_class_entry *iface); 28 ZEND_API void zend_do_inheritance_ex(zend_class_entry *ce, zend_class_entry *parent_ce, zend_bool c… 30 #define zend_do_inheritance(ce, parent_ce) \ argument 31 zend_do_inheritance_ex(ce, parent_ce, 0) 33 ZEND_API int zend_do_link_class(zend_class_entry *ce, zend_string *lc_parent_name); 35 void zend_verify_abstract_class(zend_class_entry *ce); 36 void zend_check_deprecated_constructor(const zend_class_entry *ce); 37 void zend_build_properties_info_table(zend_class_entry *ce); 38 zend_bool zend_try_early_bind(zend_class_entry *ce, zend_class_entry *parent_ce, zend_string *lcnam…
|
H A D | zend_interfaces.c | 127 …zend_call_method_with_0_params(object, ce, &ce->iterator_funcs_ptr->zf_new_iterator, "getiterator"… in zend_user_it_new_iterator() 163 …zend_call_method_with_0_params(object, iter->ce, &iter->ce->iterator_funcs_ptr->zf_valid, "valid",… in zend_user_it_valid() 179 …zend_call_method_with_0_params(object, iter->ce, &iter->ce->iterator_funcs_ptr->zf_current, "curre… in zend_user_it_get_current_data() 192 …zend_call_method_with_0_params(object, iter->ce, &iter->ce->iterator_funcs_ptr->zf_key, "key", &re… in zend_user_it_get_current_key() 213 …zend_call_method_with_0_params(object, iter->ce, &iter->ce->iterator_funcs_ptr->zf_next, "next", N… in zend_user_it_move_forward() 224 …zend_call_method_with_0_params(object, iter->ce, &iter->ce->iterator_funcs_ptr->zf_rewind, "rewind… in zend_user_it_rewind() 255 iterator->ce = Z_OBJCE_P(object); in zend_user_it_get_iterator() 437 zend_class_entry * ce = Z_OBJCE_P(object); in zend_user_serialize() local 441 zend_call_method_with_0_params(object, ce, &ce->serialize_func, "serialize", &retval); in zend_user_serialize() 482 zend_call_method_with_1_params(object, ce, &ce->unserialize_func, "unserialize", NULL, &zdata); in zend_user_unserialize() [all …]
|
H A D | zend_interfaces.h | 36 zend_class_entry *ce; member 53 zend_class_entry ce;\ 54 INIT_CLASS_ENTRY(ce, # class_name_str, zend_funcs_ ## class_name) \ 55 zend_ce_ ## class_name = zend_register_internal_interface(&ce);\ 69 ZEND_API void zend_user_it_new_iterator(zend_class_entry *ce, zval *object, zval *iterator); 70 ZEND_API zend_object_iterator *zend_user_it_get_new_iterator(zend_class_entry *ce, zval *object, in… 75 ZEND_API int zend_user_unserialize(zval *object, zend_class_entry *ce, const unsigned char *buf, si… 78 ZEND_API int zend_class_unserialize_deny(zval *object, zend_class_entry *ce, const unsigned char *b…
|
H A D | zend_object_handlers.c | 65 zend_class_entry *ce = zobj->ce; in rebuild_object_properties() local 85 ce = ce->parent; in rebuild_object_properties() 87 if (prop_info->ce == ce && in rebuild_object_properties() 184 zend_class_entry *ce = zobj->ce; in zend_std_call_getter() local 220 zend_class_entry *ce = zobj->ce; in zend_std_call_setter() local 258 zend_class_entry *ce = zobj->ce; in zend_std_call_unsetter() local 294 zend_class_entry *ce = zobj->ce; in zend_std_call_issetter() local 437 if (property_info->ce != ce) { in zend_get_property_offset() 528 if (property_info->ce != ce) { in zend_get_property_info() 1427 instanceof_function(object->ce, ce)) { in zend_std_get_static_method() [all …]
|
H A D | zend_object_handlers.h | 201 ZEND_API void zend_class_init_statics(zend_class_entry *ce); 202 ZEND_API zend_function *zend_std_get_static_method(zend_class_entry *ce, zend_string *function_name… 203 ZEND_API zval *zend_std_get_static_property_with_info(zend_class_entry *ce, zend_string *property_n… 204 ZEND_API zval *zend_std_get_static_property(zend_class_entry *ce, zend_string *property_name, int t… 205 ZEND_API ZEND_COLD zend_bool zend_std_unset_static_property(zend_class_entry *ce, zend_string *prop… 207 ZEND_API struct _zend_property_info *zend_get_property_info(zend_class_entry *ce, zend_string *memb… 227 ZEND_API int zend_check_protected(zend_class_entry *ce, zend_class_entry *scope); 231 ZEND_API zend_function *zend_get_call_trampoline_func(zend_class_entry *ce, zend_string *method_nam…
|