/PHP-7.2/ |
H A D | .gdbinit | 410 set $ce = $arg0 411 if $ce->ce_flags & 0x10 || $ce->ce_flags & 0x20 414 if $ce->ce_flags & 0x40 419 if $ce->parent != 0 433 set $ce = $ce->parent 437 set $ce = $arg0 440 set $ce = $ce->interfaces[0] 443 set $ce = 0 448 set $ce = $arg0 450 while $ce != 0 [all …]
|
/PHP-7.2/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.2/Zend/ |
H A D | zend.h | 89 zend_class_entry *ce; member 96 zend_class_entry *ce; member 149 zend_object_iterator *(*get_iterator)(zend_class_entry *ce, zval *object, int by_ref); 151 union _zend_function *(*get_static_method)(zend_class_entry *ce, zend_string* method); 155 …int (*unserialize)(zval *object, zend_class_entry *ce, const unsigned char *buf, size_t buf_len, z…
|
H A D | zend_API.c | 682 if (ce) { in zend_parse_arg_impl() 1039 if (ce && !instanceof_function(Z_OBJCE_P(this_ptr), ce)) { in zend_parse_method_parameters() 1071 if (ce && !instanceof_function(Z_OBJCE_P(this_ptr), ce)) { in zend_parse_method_parameters_ex() 1170 while (ce) { in zend_update_class_constants() 1172 if (prop_info->ce == ce) { in zend_update_class_constants() 1186 ce = ce->parent; in zend_update_class_constants() 2792 ce = zend_hash_add_ptr(CG(class_table), lcname, ce); in zend_register_class_alias_ex() 2794 if (ce) { in zend_register_class_alias_ex() 3749 …ce->default_properties_table = perealloc(ce->default_properties_table, sizeof(zval) * ce->default_… in zend_declare_property_ex() 3780 property_info->ce = ce; in zend_declare_property_ex() [all …]
|
H A D | zend_API.h | 248 …efine CE_STATIC_MEMBERS(ce) (((ce)->type==ZEND_USER_CLASS)?(ce)->static_members_table:CG(static_me… argument 250 # define CE_STATIC_MEMBERS(ce) ((ce)->static_members_table) argument 309 #define zend_register_class_alias(name, ce) \ argument 310 zend_register_class_alias_ex(name, sizeof(name)-1, ce) 311 #define zend_register_ns_class_alias(ns, name, ce) \ argument 396 #define object_init_ex(arg, ce) _object_init_ex((arg), (ce) ZEND_FILE_LINE_CC) argument 397 #define object_and_properties_init(arg, ce, properties) _object_and_properties_init((arg), (ce), (p… argument 400 ZEND_API int _object_init_ex(zval *arg, zend_class_entry *ce ZEND_FILE_LINE_DC); 566 ZEND_API zend_string *zend_find_alias_name(zend_class_entry *ce, zend_string *name); 569 ZEND_API const char *zend_get_object_type(const zend_class_entry *ce); [all …]
|
H A D | zend_builtin_functions.c | 947 if (ce && ce->parent) { in ZEND_FUNCTION() 955 ce = Z_OBJ_P(arg)->ce; in ZEND_FUNCTION() 960 if (ce && ce->parent) { in ZEND_FUNCTION() 1005 if (!ce) { in is_a_impl() 1097 if (!ce) { in ZEND_FUNCTION() 1229 if (!ce) { in ZEND_FUNCTION() 1340 if (!ce) { in ZEND_FUNCTION() 1396 if (ce) { in ZEND_FUNCTION() 1432 if (ce) { in ZEND_FUNCTION() 1469 if (ce) { in ZEND_FUNCTION() [all …]
|
H A D | zend_closures.c | 187 zend_class_entry *ce, *called_scope; in ZEND_METHOD() local 197 ce = Z_OBJCE_P(scope_arg); in ZEND_METHOD() 199 ce = NULL; in ZEND_METHOD() 203 ce = closure->func.common.scope; in ZEND_METHOD() 212 ce = closure->func.common.scope; in ZEND_METHOD() 222 called_scope = ce; in ZEND_METHOD() 272 if (fcc.object && fcc.object->ce == zend_ce_closure in zend_create_closure_from_callable() 611 zend_class_entry ce; in zend_register_closure_ce() local 613 INIT_CLASS_ENTRY(ce, "Closure", closure_functions); in zend_register_closure_ce() 614 zend_ce_closure = zend_register_internal_class(&ce); in zend_register_closure_ce() [all …]
|
H A D | zend_compile.c | 1130 ZEND_ASSERT(ce); in do_bind_class() 1131 ce->refcount++; in do_bind_class() 1147 return ce; in do_bind_class() 1167 if (!ce) { in do_bind_inherited_class() 1185 ce->refcount++; in do_bind_inherited_class() 1191 return ce; in do_bind_inherited_class() 1558 if (ce) { in zend_try_ct_eval_class_const() 1787 ce->static_members_table = ce->default_static_members_table; in zend_initialize_class_data() 4136 if (ce) { in zend_compile_static_call() 6850 if (ce) { in zend_try_ct_eval_magic_const() [all …]
|
H A D | zend_compile.h | 317 zend_class_entry *ce; member 332 zend_class_entry *ce; member 782 ZEND_API void zend_cleanup_internal_class_data(zend_class_entry *ce); 805 ZEND_API void zend_initialize_class_data(zend_class_entry *ce, zend_bool nullify_handlers);
|
H A D | zend_constants.c | 235 return (c->ce == scope); in zend_verify_const_access() 238 return zend_check_protected(c->ce, scope); in zend_verify_const_access() 289 zend_class_entry *ce = NULL; in zend_get_constant_ex() local 314 ce = scope; in zend_get_constant_ex() 323 ce = scope->parent; in zend_get_constant_ex() 326 ce = zend_get_called_scope(EG(current_execute_data)); in zend_get_constant_ex() 327 if (UNEXPECTED(!ce)) { in zend_get_constant_ex() 332 ce = zend_fetch_class(class_name, flags); in zend_get_constant_ex() 334 if (ce) { in zend_get_constant_ex() 335 c = zend_hash_find_ptr(&ce->constants_table, constant_name); in zend_get_constant_ex() [all …]
|
H A D | zend_constants.h | 67 ZEND_API int zend_verify_const_access(zend_class_constant *c, zend_class_entry *ce);
|
H A D | zend_exceptions.c | 277 zend_class_entry *ce; in ZEND_METHOD() local 280 ce = Z_OBJCE(EX(This)); in ZEND_METHOD() 282 ce = Z_CE(EX(This)); in ZEND_METHOD() 284 ce = base_ce; in ZEND_METHOD() 344 zend_class_entry *ce; in ZEND_METHOD() local 347 ce = Z_OBJCE(EX(This)); in ZEND_METHOD() 349 ce = Z_CE(EX(This)); in ZEND_METHOD() 351 ce = zend_ce_error_exception; in ZEND_METHOD() 820 zend_class_entry ce; in zend_register_default_exception() local 858 INIT_CLASS_ENTRY(ce, "ParseError", NULL); in zend_register_default_exception() [all …]
|
H A D | zend_execute.c | 661 if (ce) { in zend_verify_type_error_common() 726 zf, arg_info, ce, value, in zend_verify_arg_error() 839 if (UNEXPECTED(!*ce)) { in zend_check_type() 876 zend_class_entry *ce; in zend_verify_arg_type() local 946 zf, arg_info, ce, value, in zend_verify_return_error() 962 zf, arg_info, ce, value, in zend_verify_internal_return_error() 990 zend_class_entry *ce = NULL; in zend_verify_internal_return_type() local 1013 zend_class_entry *ce = NULL; in zend_verify_return_type() local 1031 if (ce) { in zend_verify_missing_return_type() 1032 *cache_slot = (void*)ce; in zend_verify_missing_return_type() [all …]
|
H A D | zend_execute.h | 301 void zend_verify_abstract_class(zend_class_entry *ce); 339 #define CACHED_POLYMORPHIC_PTR(num, ce) \ argument 340 (EXPECTED(((void**)((char*)EX_RUN_TIME_CACHE() + (num)))[0] == (void*)(ce)) ? \ 344 #define CACHE_POLYMORPHIC_PTR(num, ce, ptr) do { \ argument 346 slot[0] = (ce); \ 357 #define CACHED_POLYMORPHIC_PTR_EX(slot, ce) \ argument 358 (EXPECTED((slot)[0] == (ce)) ? (slot)[1] : NULL) 360 #define CACHE_POLYMORPHIC_PTR_EX(slot, ce, ptr) do { \ argument 361 (slot)[0] = (ce); \
|
H A D | zend_execute_API.c | 420 *space = ce ? "::" : ""; in get_active_class_name() 422 return ce ? ZSTR_VAL(ce->name) : ""; in get_active_class_name() 897 zend_class_entry *ce = NULL; in zend_lookup_class_ex() local 920 if (ce) { in zend_lookup_class_ex() 924 return ce; in zend_lookup_class_ex() 1006 return ce; in zend_lookup_class_ex() 1388 if (UNEXPECTED(!ce)) { in zend_fetch_class() 1392 return ce; in zend_fetch_class() 1416 return ce; in zend_fetch_class() 1422 zend_class_entry *ce; in zend_fetch_class_by_name() local [all …]
|
H A D | zend_gc.c | 134 obj->ce->name->val, obj->handle); in gc_trace_ref() 797 (obj->ce->destructor != NULL))) { 1143 || obj->ce->destructor)) {
|
H A D | zend_generators.c | 1221 zend_object_iterator *zend_generator_get_iterator(zend_class_entry *ce, zval *object, int by_ref) /… in zend_generator_get_iterator() argument 1273 zend_class_entry ce; in zend_register_generator_ce() local 1275 INIT_CLASS_ENTRY(ce, "Generator", generator_functions); in zend_register_generator_ce() 1276 zend_ce_generator = zend_register_internal_class(&ce); in zend_register_generator_ce() 1294 INIT_CLASS_ENTRY(ce, "ClosedGeneratorException", NULL); in zend_register_generator_ce() 1295 zend_ce_ClosedGeneratorException = zend_register_internal_class_ex(&ce, zend_ce_exception); in zend_register_generator_ce()
|
H A D | zend_inheritance.c | 106 ce->__get = ce->parent->__get; in do_inherit_parent_constructor() 109 ce->__set = ce->parent->__set; in do_inherit_parent_constructor() 112 ce->__unset = ce->parent->__unset; in do_inherit_parent_constructor() 115 ce->__isset = ce->parent->__isset; in do_inherit_parent_constructor() 118 ce->__call = ce->parent->__call; in do_inherit_parent_constructor() 124 ce->__tostring = ce->parent->__tostring; in do_inherit_parent_constructor() 127 ce->clone = ce->parent->clone; in do_inherit_parent_constructor() 130 ce->serialize = ce->parent->serialize; in do_inherit_parent_constructor() 910 if (property_info->ce == ce) { in zend_do_inheritance() 1101 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_inherit_interfaces(zend_class_entry *ce, const zend_class_entry *iface); 28 ZEND_API void zend_do_implement_interface(zend_class_entry *ce, zend_class_entry *iface); 30 ZEND_API void zend_do_implement_trait(zend_class_entry *ce, zend_class_entry *trait); 31 ZEND_API void zend_do_bind_traits(zend_class_entry *ce); 33 ZEND_API void zend_do_inheritance(zend_class_entry *ce, zend_class_entry *parent_ce); 36 void zend_check_deprecated_constructor(const zend_class_entry *ce);
|
H A D | zend_interfaces.c | 124 …zend_call_method_with_0_params(object, ce, &ce->iterator_funcs.zf_new_iterator, "getiterator", ret… in zend_user_it_new_iterator() 160 …zend_call_method_with_0_params(object, iter->ce, &iter->ce->iterator_funcs.zf_valid, "valid", &mor… in zend_user_it_valid() 178 …zend_call_method_with_0_params(object, iter->ce, &iter->ce->iterator_funcs.zf_current, "current", … in zend_user_it_get_current_data() 191 zend_call_method_with_0_params(object, iter->ce, &iter->ce->iterator_funcs.zf_key, "key", &retval); in zend_user_it_get_current_key() 212 zend_call_method_with_0_params(object, iter->ce, &iter->ce->iterator_funcs.zf_next, "next", NULL); in zend_user_it_move_forward() 223 …zend_call_method_with_0_params(object, iter->ce, &iter->ce->iterator_funcs.zf_rewind, "rewind", NU… in zend_user_it_rewind() 253 iterator->ce = Z_OBJCE_P(object); in zend_user_it_get_iterator() 384 zend_class_entry * ce = Z_OBJCE_P(object); in zend_user_serialize() local 388 zend_call_method_with_0_params(object, ce, &ce->serialize_func, "serialize", &retval); in zend_user_serialize() 429 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 | 38 zend_class_entry *ce; member 55 zend_class_entry ce;\ 56 INIT_CLASS_ENTRY(ce, # class_name_str, zend_funcs_ ## class_name) \ 57 zend_ce_ ## class_name = zend_register_internal_interface(&ce);\ 71 ZEND_API void zend_user_it_new_iterator(zend_class_entry *ce, zval *object, zval *iterator); 72 ZEND_API zend_object_iterator *zend_user_it_get_new_iterator(zend_class_entry *ce, zval *object, in… 77 ZEND_API int zend_user_unserialize(zval *object, zend_class_entry *ce, const unsigned char *buf, si… 80 ZEND_API int zend_class_unserialize_deny(zval *object, zend_class_entry *ce, const unsigned char *b…
|
H A D | zend_object_handlers.c | 77 zend_class_entry *ce = zobj->ce; in rebuild_object_properties() local 97 ce = ce->parent; in rebuild_object_properties() 99 if (prop_info->ce == ce && in rebuild_object_properties() 287 return (ce == scope || property_info->ce == scope); in zend_verify_property_access() 1057 if (!ce) { in zend_check_private_int() 1068 if (fbc->common.scope == ce && scope == ce) { in zend_check_private_int() 1075 ce = ce->parent; in zend_check_private_int() 1076 while (ce) { in zend_check_private_int() 1087 ce = ce->parent; in zend_check_private_int() 1306 instanceof_function(object->ce, ce)) { in zend_std_get_static_method() [all …]
|
H A D | zend_object_handlers.h | 164 ZEND_API union _zend_function *zend_std_get_static_method(zend_class_entry *ce, zend_string *functi… 165 ZEND_API zval *zend_std_get_static_property(zend_class_entry *ce, zend_string *property_name, zend_… 166 ZEND_API ZEND_COLD zend_bool zend_std_unset_static_property(zend_class_entry *ce, zend_string *prop… 168 ZEND_API struct _zend_property_info *zend_get_property_info(zend_class_entry *ce, zend_string *memb… 175 ZEND_API int zend_check_private(union _zend_function *fbc, zend_class_entry *ce, zend_string *funct… 177 ZEND_API int zend_check_protected(zend_class_entry *ce, zend_class_entry *scope); 181 ZEND_API zend_function *zend_get_call_trampoline_func(zend_class_entry *ce, zend_string *method_nam…
|
H A D | zend_objects.c | 34 object->ce = ce; in zend_object_std_init() 57 end = p + object->ce->default_properties_count; in zend_object_std_dtor() 94 if (object->ce != scope) { in zend_objects_destroy_object() 97 ZSTR_VAL(object->ce->name), in zend_objects_destroy_object() 104 ZSTR_VAL(object->ce->name)); in zend_objects_destroy_object() 116 ZSTR_VAL(object->ce->name), in zend_objects_destroy_object() 123 ZSTR_VAL(object->ce->name)); in zend_objects_destroy_object() 164 zend_object_std_init(object, ce); in zend_objects_new() 226 if (old_object->ce->clone) { in zend_objects_clone_members() 231 …zend_call_method_with_0_params(&new_obj, old_object->ce, &old_object->ce->clone, ZEND_CLONE_FUNC_N… in zend_objects_clone_members() [all …]
|
H A D | zend_objects.h | 28 ZEND_API void zend_object_std_init(zend_object *object, zend_class_entry *ce); 30 ZEND_API zend_object *zend_objects_new(zend_class_entry *ce);
|