Home
last modified time | relevance | path

Searched refs:ce (Results 1 – 25 of 289) sorted by path

12345678910>>...12

/php-src/
H A D.gdbinit418 set $ce = $arg0
419 if $ce->ce_flags & 0x10 || $ce->ce_flags & 0x20
422 if $ce->ce_flags & 0x40
427 if $ce->parent != 0
441 set $ce = $ce->parent
445 set $ce = $arg0
448 set $ce = $ce->interfaces[0]
451 set $ce = 0
456 set $ce = $arg0
458 while $ce != 0
[all …]
/php-src/Zend/Optimizer/
H A Ddfa_pass.c283 zend_class_entry *ce = zend_optimizer_get_class_entry(script, op_array, lcname); in can_elide_list_type() local
285 bool result = ce && safe_instanceof(use_info->ce, ce); in can_elide_list_type()
314 if (disallowed_types == MAY_BE_OBJECT && use_info->ce && ZEND_TYPE_IS_COMPLEX(arg_info->type)) { in can_elide_return_type_check()
H A Descape_analysis.c167 if (ce in is_allocation_def()
168 && !ce->parent in is_allocation_def()
172 && !ce->constructor in is_allocation_def()
173 && !ce->destructor in is_allocation_def()
174 && !ce->__get in is_allocation_def()
175 && !ce->__set in is_allocation_def()
237 if (ce in is_local_def()
242 && !ce->destructor in is_local_def()
243 && !ce->__get in is_local_def()
244 && !ce->__set in is_local_def()
[all …]
H A Dsccp.c994 if (!var_info->ce || (var_info->ce->ce_flags & ZEND_ACC_HAS_TYPE_HINTS) || in sccp_visit_instr()
995 !(var_info->ce->ce_flags & ZEND_ACC_ALLOW_DYNAMIC_PROPERTIES)) { in sccp_visit_instr()
H A Dssa_integrity.c201 if ((type & MAY_BE_REF) && ssa->var_info[i].ce) { in ssa_verify_integrity()
H A Dzend_dump.c175 static void zend_dump_type_info(uint32_t info, zend_class_entry *ce, int is_instanceof, uint32_t du… in zend_dump_type_info() argument
208 if (ce) { in zend_dump_type_info()
210 fprintf(stderr, " (instanceof %s)", ce->name->val); in zend_dump_type_info()
212 fprintf(stderr, " (%s)", ce->name->val); in zend_dump_type_info()
343 if (ce) { in zend_dump_type_info()
345 fprintf(stderr, " (instanceof %s)", ce->name->val); in zend_dump_type_info()
347 fprintf(stderr, " (%s)", ce->name->val); in zend_dump_type_info()
363 ssa->var_info[ssa_var_num].ce, in zend_dump_ssa_var_info()
364 ssa->var_info[ssa_var_num].ce ? in zend_dump_ssa_var_info()
397 zend_dump_type_info(constraint->type_mask, constraint->ce, 1, dump_flags); in zend_dump_type_constraint()
[all …]
H A Dzend_func_info.c134 zend_class_entry **ce, bool *ce_is_instanceof) in zend_get_func_info() argument
138 *ce = NULL; in zend_get_func_info()
150 …callee_func, /* script */ NULL, ce, ce_is_instanceof, /* use_tentative_return_info */ !call_info->… in zend_get_func_info()
184 *ce = info->return_info.ce; in zend_get_func_info()
190 …callee_func, /* TODO: script */ NULL, ce, ce_is_instanceof, /* use_tentative_return_info */ !call_… in zend_get_func_info()
194 *ce = NULL; in zend_get_func_info()
H A Dzend_func_info.h63 zend_class_entry **ce, bool *ce_is_instanceof);
H A Dzend_inference.c2448 ce = ssa->var_info[ssa_op->op1_use].ce; in zend_fetch_prop_info()
3393 ce = ssa_var_info[ssa_op->op1_use].ce; in _zend_update_type_info()
3399 if (ce in _zend_update_type_info()
3802 ce = ssa->var_info[ssa_op->op1_use].ce; in _zend_update_type_info()
4134 ce = ce->parent; in get_class_entry_rank()
4213 if ((tmp & MAY_BE_OBJECT) && constraint->ce && ce != constraint->ce) { in zend_infer_types_ex()
4215 ce = constraint->ce; in zend_infer_types_ex()
4218 ce = constraint->ce; in zend_infer_types_ex()
4249 ce = info->ce; in zend_infer_types_ex()
4254 ce = join_class_entries(ce, info->ce, &is_instanceof); in zend_infer_types_ex()
[all …]
H A Dzend_inference.h234 zend_class_entry **ce, bool *ce_is_instanceof, bool use_tentative_return_info);
H A Dzend_optimizer.c799 if (ce) { in zend_optimizer_get_class_entry()
800 return ce; in zend_optimizer_get_class_entry()
804 if (ce in zend_optimizer_get_class_entry()
807 return ce; in zend_optimizer_get_class_entry()
851 ce = tmp; in zend_fetch_class_const_info()
855 ce = tmp; in zend_fetch_class_const_info()
865 ce = op_array->scope; in zend_fetch_class_const_info()
867 ce = op_array->scope; in zend_fetch_class_const_info()
875 if (!ce || (ce->ce_flags & ZEND_ACC_TRAIT)) { in zend_fetch_class_const_info()
936 if (ce) { in zend_optimizer_get_called_func()
[all …]
H A Dzend_ssa.c164 phi->constraint.type.ce = NULL; in pi_type_mask()
529 zend_class_entry *ce = zend_optimizer_get_class_entry(script, op_array, lcname); in place_essa_pis() local
530 if (!ce) { in place_essa_pis()
536 pi->constraint.type.ce = ce; in place_essa_pis()
H A Dzend_ssa.h53 zend_class_entry *ce; /* Class entry for instanceof constraints */ member
132 zend_class_entry *ce; member
/php-src/Zend/tests/
H A Dnested_method_and_function.phpt2 active_class_entry must be always correct (__METHOD__ should not depend on declaring function ce)
/php-src/Zend/
H A Dzend.c559 if (!(zobj->ce->ce_flags & ZEND_ACC_ENUM)) { in zend_print_zval_r_to_buf()
563 if (zobj->ce->enum_backing_type != IS_UNDEF) { in zend_print_zval_r_to_buf()
565 smart_str_appends(buf, zend_get_type_by_const(zobj->ce->enum_backing_type)); in zend_print_zval_r_to_buf()
H A Dzend.h124 zend_class_entry *ce; member
138 zend_class_entry *ce; member
198 zend_object_iterator *(*get_iterator)(zend_class_entry *ce, zval *object, int by_ref);
199 zend_function *(*get_static_method)(zend_class_entry *ce, zend_string* method);
203 …int (*unserialize)(zval *object, zend_class_entry *ce, const unsigned char *buf, size_t buf_len, z…
H A Dzend_API.c958 if (ce) { in zend_parse_arg_impl()
1315 if (ce && !instanceof_function(Z_OBJCE_P(this_ptr), ce)) { in zend_parse_method_parameters()
1347 if (ce && !instanceof_function(Z_OBJCE_P(this_ptr), ce)) { in zend_parse_method_parameters_ex()
2771 ce->clone = fptr; in zend_add_magic_method()
2778 ce->__get = fptr; in zend_add_magic_method()
2781 ce->__set = fptr; in zend_add_magic_method()
3719 fcc->called_scope = fcc->object ? fcc->object->ce : ce; in zend_is_callable_check_class()
4028 ZSTR_VAL(ce->name), ZSTR_LEN(ce->name), in zend_get_callable_name_ex()
4461ce->default_properties_table = perealloc(ce->default_properties_table, sizeof(zval) * ce->default_… in zend_declare_typed_property()
4497 property_info->ce = ce; in zend_declare_typed_property()
[all …]
H A Dzend_API.h328 #define CE_STATIC_MEMBERS(ce) \ argument
331 #define CE_CONSTANTS_TABLE(ce) \ argument
332 zend_class_constants_table(ce)
451 if ((ce->ce_flags & ZEND_ACC_HAS_AST_CONSTANTS) && ZEND_MAP_PTR(ce->mutable_data)) { in zend_class_constants_table()
460 return &ce->constants_table; in zend_class_constants_table()
465 if ((ce->ce_flags & ZEND_ACC_HAS_AST_PROPERTIES) && ZEND_MAP_PTR(ce->mutable_data)) { in zend_class_default_properties_table()
476 if (ZEND_MAP_PTR(ce->mutable_data) && ce->type == ZEND_USER_CLASS) { in zend_class_set_backed_enum_table()
486 if (ZEND_MAP_PTR(ce->mutable_data) && ce->type == ZEND_USER_CLASS) { in zend_class_backed_enum_table()
490 return ce->backed_enum_table; in zend_class_backed_enum_table()
2417 (!ce || EXPECTED(instanceof_function(Z_OBJCE_P(arg), ce) != 0))) { in zend_parse_arg_object()
[all …]
H A Dzend_ast.c829 zend_class_entry *ce = zend_lookup_class(class_name); in zend_ast_evaluate_inner() local
830 zend_enum_new(result, ce, case_name, case_value_ast != NULL ? &case_value_zv : NULL); in zend_ast_evaluate_inner()
872 zend_class_entry *ce = zend_ast_fetch_class(ast->child[0], scope); in zend_ast_evaluate_inner() local
873 if (!ce) { in zend_ast_evaluate_inner()
877 if (object_init_ex(result, ce) != SUCCESS) { in zend_ast_evaluate_inner()
994 if (!(zobj->ce->ce_flags & ZEND_ACC_ENUM)) { in zend_ast_evaluate_inner()
H A Dzend_attributes.c314 ZEND_API zend_internal_attribute *zend_mark_internal_attribute(zend_class_entry *ce) in zend_mark_internal_attribute() argument
319 if (ce->type != ZEND_INTERNAL_CLASS) { in zend_mark_internal_attribute()
323 ZEND_HASH_FOREACH_PTR(ce->attributes, attr) { in zend_mark_internal_attribute()
326 internal_attr->ce = ce; in zend_mark_internal_attribute()
330 zend_string *lcname = zend_string_tolower_ex(ce->name, 1); in zend_mark_internal_attribute()
341 ZEND_API zend_internal_attribute *zend_internal_attribute_register(zend_class_entry *ce, uint32_t f… in zend_internal_attribute_register() argument
343 zend_attribute *attr = zend_add_class_attribute(ce, zend_ce_attribute->name, 1); in zend_internal_attribute_register()
346 return zend_mark_internal_attribute(ce); in zend_internal_attribute_register()
H A Dzend_attributes.h65 zend_class_entry *ce; member
81 ZEND_API zend_internal_attribute *zend_mark_internal_attribute(zend_class_entry *ce);
82 ZEND_API zend_internal_attribute *zend_internal_attribute_register(zend_class_entry *ce, uint32_t f…
91 static zend_always_inline zend_attribute *zend_add_class_attribute(zend_class_entry *ce, zend_strin… in END_EXTERN_C()
93 uint32_t flags = ce->type != ZEND_USER_CLASS ? ZEND_ATTRIBUTE_PERSISTENT : 0; in END_EXTERN_C()
94 return zend_add_attribute(&ce->attributes, name, argc, flags, 0, 0); in END_EXTERN_C()
109 static zend_always_inline zend_attribute *zend_add_property_attribute(zend_class_entry *ce, zend_pr… in zend_add_property_attribute() argument
111 uint32_t flags = ce->type != ZEND_USER_CLASS ? ZEND_ATTRIBUTE_PERSISTENT : 0; in zend_add_property_attribute()
115 static zend_always_inline zend_attribute *zend_add_class_constant_attribute(zend_class_entry *ce, z… in zend_add_class_constant_attribute() argument
117 uint32_t flags = ce->type != ZEND_USER_CLASS ? ZEND_ATTRIBUTE_PERSISTENT : 0; in zend_add_class_constant_attribute()
H A Dzend_attributes_arginfo.h70 zend_class_entry ce, *class_entry; in register_class_Attribute() local
72 INIT_CLASS_ENTRY(ce, "Attribute", class_Attribute_methods); in register_class_Attribute()
73 class_entry = zend_register_internal_class_ex(&ce, NULL); in register_class_Attribute()
142 zend_class_entry ce, *class_entry; in register_class_ReturnTypeWillChange() local
145 class_entry = zend_register_internal_class_ex(&ce, NULL); in register_class_ReturnTypeWillChange()
160 zend_class_entry ce, *class_entry; in register_class_AllowDynamicProperties() local
163 class_entry = zend_register_internal_class_ex(&ce, NULL); in register_class_AllowDynamicProperties()
178 zend_class_entry ce, *class_entry; in register_class_SensitiveParameter() local
181 class_entry = zend_register_internal_class_ex(&ce, NULL); in register_class_SensitiveParameter()
196 zend_class_entry ce, *class_entry; in register_class_SensitiveParameterValue() local
[all …]
H A Dzend_builtin_functions.c606 if (!ce) { in ZEND_FUNCTION()
614 if (ce && ce->parent) { in ZEND_FUNCTION()
627 zend_class_entry *ce; in is_a_impl() local
659 if (!ce) { in is_a_impl()
886 zend_class_entry *ce; in ZEND_FUNCTION() local
951 if (!ce) { in _property_exists()
964 || property_info->ce == ce)) { in _property_exists()
1012 if (ce) { in _class_exists_impl()
1032 if (ce) { in _class_exists_impl()
1151 if (ce) { in ZEND_FUNCTION()
[all …]
H A Dzend_builtin_functions_arginfo.h364 zend_class_entry ce, *class_entry; in register_class_stdClass() local
366 INIT_CLASS_ENTRY(ce, "stdClass", class_stdClass_methods); in register_class_stdClass()
367 class_entry = zend_register_internal_class_ex(&ce, NULL); in register_class_stdClass()
H A Dzend_closures.c143 newclass = newobj->ce; in ZEND_METHOD()
223 zend_class_entry *ce, *called_scope; in do_closure_bind() local
227 ce = scope_obj->ce; in do_closure_bind()
230 ce = closure->func.common.scope; in do_closure_bind()
231 } else if ((ce = zend_lookup_class(scope_str)) == NULL) { in do_closure_bind()
236 ce = NULL; in do_closure_bind()
239 if (!zend_valid_closure_binding(closure, newthis, ce)) { in do_closure_bind()
246 called_scope = ce; in do_closure_bind()
249 zend_create_closure(return_value, &closure->func, ce, called_scope, newthis); in do_closure_bind()
342 if (fcc.object && fcc.object->ce == zend_ce_closure in zend_create_closure_from_callable()
[all …]

Completed in 401 milliseconds

12345678910>>...12