Lines Matching refs:ce

86 #define METHOD_NOTSTATIC(ce)                                                                       …  argument
87 …if (!this_ptr || !instanceof_function(Z_OBJCE_P(this_ptr), ce TSRMLS_CC)) { …
185 zend_class_entry *ce; member
211 zend_class_entry *ce; member
326 intern->zo.ce = class_type; in reflection_objects_new()
352 static void _class_string(string *str, zend_class_entry *ce, zval *obj, char *indent TSRMLS_DC);
357 static void _class_string(string *str, zend_class_entry *ce, zval *obj, char *indent TSRMLS_DC) in _class_string() argument
366 if (ce->type == ZEND_USER_CLASS && ce->info.user.doc_comment) { in _class_string()
367 string_printf(str, "%s%s", indent, ce->info.user.doc_comment); in _class_string()
375 if (ce->ce_flags & ZEND_ACC_INTERFACE) { in _class_string()
377 } else if ((ce->ce_flags & ZEND_ACC_TRAIT) == ZEND_ACC_TRAIT) { in _class_string()
382 string_printf(str, (ce->type == ZEND_USER_CLASS) ? "<user" : "<internal"); in _class_string()
383 if (ce->type == ZEND_INTERNAL_CLASS && ce->info.internal.module) { in _class_string()
384 string_printf(str, ":%s", ce->info.internal.module->name); in _class_string()
387 if (ce->get_iterator != NULL) { in _class_string()
390 if (ce->ce_flags & ZEND_ACC_INTERFACE) { in _class_string()
392 } else if ((ce->ce_flags & ZEND_ACC_TRAIT) == ZEND_ACC_TRAIT) { in _class_string()
395 if (ce->ce_flags & (ZEND_ACC_IMPLICIT_ABSTRACT_CLASS|ZEND_ACC_EXPLICIT_ABSTRACT_CLASS)) { in _class_string()
398 if (ce->ce_flags & ZEND_ACC_FINAL_CLASS) { in _class_string()
403 string_printf(str, "%s", ce->name); in _class_string()
404 if (ce->parent) { in _class_string()
405 string_printf(str, " extends %s", ce->parent->name); in _class_string()
408 if (ce->num_interfaces) { in _class_string()
411 if (ce->ce_flags & ZEND_ACC_INTERFACE) { in _class_string()
412 string_printf(str, " extends %s", ce->interfaces[0]->name); in _class_string()
414 string_printf(str, " implements %s", ce->interfaces[0]->name); in _class_string()
416 for (i = 1; i < ce->num_interfaces; ++i) { in _class_string()
417 string_printf(str, ", %s", ce->interfaces[i]->name); in _class_string()
423 if (ce->type == ZEND_USER_CLASS) { in _class_string()
424 string_printf(str, "%s @@ %s %d-%d\n", indent, ce->info.user.filename, in _class_string()
425 ce->info.user.line_start, ce->info.user.line_end); in _class_string()
429 if (&ce->constants_table) { in _class_string()
430 …zend_hash_apply_with_argument(&ce->constants_table, (apply_func_arg_t) zval_update_constant, (void… in _class_string()
432 count = zend_hash_num_elements(&ce->constants_table); in _class_string()
441 zend_hash_internal_pointer_reset_ex(&ce->constants_table, &pos); in _class_string()
443 while (zend_hash_get_current_data_ex(&ce->constants_table, (void **) &value, &pos) == SUCCESS) { in _class_string()
444 zend_hash_get_current_key_ex(&ce->constants_table, &key, &key_len, &num_index, 0, &pos); in _class_string()
447 zend_hash_move_forward_ex(&ce->constants_table, &pos); in _class_string()
454 if (&ce->properties_info) { in _class_string()
456 count = zend_hash_num_elements(&ce->properties_info); in _class_string()
461 zend_hash_internal_pointer_reset_ex(&ce->properties_info, &pos); in _class_string()
463 while (zend_hash_get_current_data_ex(&ce->properties_info, (void **) &prop, &pos) == SUCCESS) { in _class_string()
469 zend_hash_move_forward_ex(&ce->properties_info, &pos); in _class_string()
479 zend_hash_internal_pointer_reset_ex(&ce->properties_info, &pos); in _class_string()
481 while (zend_hash_get_current_data_ex(&ce->properties_info, (void **) &prop, &pos) == SUCCESS) { in _class_string()
486 zend_hash_move_forward_ex(&ce->properties_info, &pos); in _class_string()
493 if (&ce->function_table) { in _class_string()
495 count = zend_hash_num_elements(&ce->function_table); in _class_string()
500 zend_hash_internal_pointer_reset_ex(&ce->function_table, &pos); in _class_string()
502 while (zend_hash_get_current_data_ex(&ce->function_table, (void **) &mptr, &pos) == SUCCESS) { in _class_string()
504 && ((mptr->common.fn_flags & ZEND_ACC_PRIVATE) == 0 || mptr->common.scope == ce)) in _class_string()
508 zend_hash_move_forward_ex(&ce->function_table, &pos); in _class_string()
518 zend_hash_internal_pointer_reset_ex(&ce->function_table, &pos); in _class_string()
520 while (zend_hash_get_current_data_ex(&ce->function_table, (void **) &mptr, &pos) == SUCCESS) { in _class_string()
522 && ((mptr->common.fn_flags & ZEND_ACC_PRIVATE) == 0 || mptr->common.scope == ce)) in _class_string()
525 _function_string(str, mptr, ce, sub_indent.string TSRMLS_CC); in _class_string()
527 zend_hash_move_forward_ex(&ce->function_table, &pos); in _class_string()
536 if (&ce->properties_info) { in _class_string()
537 count = zend_hash_num_elements(&ce->properties_info) - count_static_props - count_shadow_props; in _class_string()
543 zend_hash_internal_pointer_reset_ex(&ce->properties_info, &pos); in _class_string()
545 while (zend_hash_get_current_data_ex(&ce->properties_info, (void **) &prop, &pos) == SUCCESS) { in _class_string()
549 zend_hash_move_forward_ex(&ce->properties_info, &pos); in _class_string()
574 …if (!zend_hash_quick_exists(&ce->properties_info, prop_name, prop_name_size, zend_get_hash_value(p… in _class_string()
592 if (&ce->function_table) { in _class_string()
593 count = zend_hash_num_elements(&ce->function_table) - count_static_funcs; in _class_string()
601 zend_hash_internal_pointer_reset_ex(&ce->function_table, &pos); in _class_string()
603 while (zend_hash_get_current_data_ex(&ce->function_table, (void **) &mptr, &pos) == SUCCESS) { in _class_string()
605 && ((mptr->common.fn_flags & ZEND_ACC_PRIVATE) == 0 || mptr->common.scope == ce)) in _class_string()
614 || mptr->common.scope == ce in _class_string()
615 …|| zend_hash_get_current_key_ex(&ce->function_table, &key, &key_len, &num_index, 0, &pos) != HASH_… in _class_string()
620 if (ce == zend_ce_closure && obj && (len == sizeof(ZEND_INVOKE_FUNC_NAME)-1) in _class_string()
629 _function_string(&dyn, mptr, ce, sub_indent.string TSRMLS_CC); in _class_string()
634 zend_hash_move_forward_ex(&ce->function_table, &pos); in _class_string()
1191 PHPAPI void zend_reflection_class_factory(zend_class_entry *ce, zval *object TSRMLS_DC) in zend_reflection_class_factory() argument
1197 ZVAL_STRINGL(name, ce->name, ce->name_length, 1); in zend_reflection_class_factory()
1200 intern->ptr = ce; in zend_reflection_class_factory()
1202 intern->ce = ce; in zend_reflection_class_factory()
1231 intern->ce = NULL; in reflection_extension_factory()
1261 intern->ce = fptr->common.scope; in reflection_parameter_factory()
1283 intern->ce = NULL; in reflection_function_factory()
1290 static void reflection_method_factory(zend_class_entry *ce, zend_function *method, zval *closure_ob… in reflection_method_factory() argument
1302 zend_resolve_method_name(ce, method) : method->common.function_name, 1); in reflection_method_factory()
1308 intern->ce = ce; in reflection_method_factory()
1316 static void reflection_property_factory(zend_class_entry *ce, zend_property_info *prop, zval *objec… in reflection_property_factory() argument
1328 zend_class_entry *tmp_ce = ce, *store_ce = ce; in reflection_property_factory()
1332 ce = tmp_ce; in reflection_property_factory()
1339 ce = store_ce; in reflection_property_factory()
1346 ZVAL_STRINGL(classname, prop->ce->name, prop->ce->name_length, 1); in reflection_property_factory()
1351 reference->ce = ce; in reflection_property_factory()
1355 intern->ce = ce; in reflection_property_factory()
1650 intern->ce = NULL; in ZEND_METHOD()
1667 _function_string(&str, fptr, intern->ce, "" TSRMLS_CC); in ZEND_METHOD()
2149 zend_class_entry *ce = NULL; in ZEND_METHOD() local
2178 ce = fptr->common.scope; in ZEND_METHOD()
2196 ce = Z_OBJCE_PP(classref); in ZEND_METHOD()
2204 ce = *pce; in ZEND_METHOD()
2210 if (ce == zend_ce_closure && Z_TYPE_PP(classref) == IS_OBJECT in ZEND_METHOD()
2217 …} else if (zend_hash_find(&ce->function_table, lcname, lcname_len + 1, (void **) &fptr) == FAILURE… in ZEND_METHOD()
2220 "Method %s::%s() does not exist", ce->name, Z_STRVAL_PP(method)); in ZEND_METHOD()
2228 ce = Z_OBJCE_P(reference); in ZEND_METHOD()
2230 if (instanceof_function(ce, zend_ce_closure TSRMLS_CC)) { in ZEND_METHOD()
2234 …} else if (zend_hash_find(&ce->function_table, ZEND_INVOKE_FUNC_NAME, sizeof(ZEND_INVOKE_FUNC_NAME… in ZEND_METHOD()
2236 "Method %s::%s() does not exist", ce->name, ZEND_INVOKE_FUNC_NAME); in ZEND_METHOD()
2306 intern->ce = ce; in ZEND_METHOD()
2386 zend_class_entry **pce, *ce; in ZEND_METHOD() local
2407 ce = param->fptr->common.scope; in ZEND_METHOD()
2408 if (!ce) { in ZEND_METHOD()
2413 pce= &ce; in ZEND_METHOD()
2415 ce = param->fptr->common.scope; in ZEND_METHOD()
2416 if (!ce) { in ZEND_METHOD()
2421 if (!ce->parent) { in ZEND_METHOD()
2426 pce= &ce->parent; in ZEND_METHOD()
2672 zend_class_entry *ce; in ZEND_METHOD() local
2715 ce = *pce; in ZEND_METHOD()
2719 ce = Z_OBJCE_P(classname); in ZEND_METHOD()
2736 if (ce == zend_ce_closure && orig_obj && (name_len == sizeof(ZEND_INVOKE_FUNC_NAME)-1) in ZEND_METHOD()
2741 } else if (zend_hash_find(&ce->function_table, lcname, name_len + 1, (void **) &mptr) == FAILURE) { in ZEND_METHOD()
2744 "Method %s::%s() does not exist", ce->name, name_str); in ZEND_METHOD()
2759 intern->ce = ce; in ZEND_METHOD()
2776 _function_string(&str, mptr, intern->ce, "" TSRMLS_CC); in ZEND_METHOD()
2898 fcc.called_scope = intern->ce; in ZEND_METHOD()
3007 fcc.called_scope = intern->ce; in ZEND_METHOD()
3181 …RETURN_BOOL(mptr->common.fn_flags & ZEND_ACC_CTOR && intern->ce->constructor && intern->ce->constr… in ZEND_METHOD()
3250 "Method %s::%s does not have a prototype", intern->ce->name, mptr->common.function_name); in ZEND_METHOD()
3294 zend_class_entry **ce; in reflection_class_object_ctor() local
3323 if (zend_lookup_class(Z_STRVAL_P(argument), Z_STRLEN_P(argument), &ce TSRMLS_CC) == FAILURE) { in reflection_class_object_ctor()
3331 ZVAL_STRINGL(classname, (*ce)->name, (*ce)->name_length, 1); in reflection_class_object_ctor()
3334 intern->ptr = *ce; in reflection_class_object_ctor()
3349 static void add_class_vars(zend_class_entry *ce, int statics, zval *return_value TSRMLS_DC) in add_class_vars() argument
3358 zend_hash_internal_pointer_reset_ex(&ce->properties_info, &pos); in add_class_vars()
3359 …while (zend_hash_get_current_data_ex(&ce->properties_info, (void **) &prop_info, &pos) == SUCCESS)… in add_class_vars()
3360 zend_hash_get_current_key_ex(&ce->properties_info, &key, &key_len, &num_index, 0, &pos); in add_class_vars()
3361 zend_hash_move_forward_ex(&ce->properties_info, &pos); in add_class_vars()
3363 prop_info->ce != ce) || in add_class_vars()
3365 !zend_check_protected(prop_info->ce, ce)) || in add_class_vars()
3367 prop_info->ce != ce)) { in add_class_vars()
3373 prop = ce->default_static_members_table[prop_info->offset]; in add_class_vars()
3375 prop = ce->default_properties_table[prop_info->offset]; in add_class_vars()
3404 zend_class_entry *ce; in ZEND_METHOD() local
3410 GET_REFLECTION_OBJECT_PTR(ce); in ZEND_METHOD()
3412 zend_update_class_constants(ce TSRMLS_CC); in ZEND_METHOD()
3415 add_class_vars(ce, 1, return_value TSRMLS_CC); in ZEND_METHOD()
3424 zend_class_entry *ce; in ZEND_METHOD() local
3433 GET_REFLECTION_OBJECT_PTR(ce); in ZEND_METHOD()
3435 zend_update_class_constants(ce TSRMLS_CC); in ZEND_METHOD()
3436 prop = zend_std_get_static_property(ce, name, name_len, 1, NULL TSRMLS_CC); in ZEND_METHOD()
3442 "Class %s does not have a property named %s", ce->name, name); in ZEND_METHOD()
3456 zend_class_entry *ce; in ZEND_METHOD() local
3467 GET_REFLECTION_OBJECT_PTR(ce); in ZEND_METHOD()
3469 zend_update_class_constants(ce TSRMLS_CC); in ZEND_METHOD()
3470 variable_ptr = zend_std_get_static_property(ce, name, name_len, 1, NULL TSRMLS_CC); in ZEND_METHOD()
3473 "Class %s does not have a property named %s", ce->name, name); in ZEND_METHOD()
3492 zend_class_entry *ce; in ZEND_METHOD() local
3497 GET_REFLECTION_OBJECT_PTR(ce); in ZEND_METHOD()
3499 zend_update_class_constants(ce TSRMLS_CC); in ZEND_METHOD()
3500 add_class_vars(ce, 1, return_value TSRMLS_CC); in ZEND_METHOD()
3501 add_class_vars(ce, 0, return_value TSRMLS_CC); in ZEND_METHOD()
3510 zend_class_entry *ce; in ZEND_METHOD() local
3516 GET_REFLECTION_OBJECT_PTR(ce); in ZEND_METHOD()
3518 _class_string(&str, ce, intern->obj, "" TSRMLS_CC); in ZEND_METHOD()
3539 zend_class_entry *ce; in ZEND_METHOD() local
3544 GET_REFLECTION_OBJECT_PTR(ce); in ZEND_METHOD()
3545 RETURN_BOOL(ce->type == ZEND_INTERNAL_CLASS); in ZEND_METHOD()
3554 zend_class_entry *ce; in ZEND_METHOD() local
3559 GET_REFLECTION_OBJECT_PTR(ce); in ZEND_METHOD()
3560 RETURN_BOOL(ce->type == ZEND_USER_CLASS); in ZEND_METHOD()
3569 zend_class_entry *ce; in ZEND_METHOD() local
3574 GET_REFLECTION_OBJECT_PTR(ce); in ZEND_METHOD()
3575 if (ce->type == ZEND_USER_CLASS) { in ZEND_METHOD()
3576 RETURN_STRING(ce->info.user.filename, 1); in ZEND_METHOD()
3587 zend_class_entry *ce; in ZEND_METHOD() local
3592 GET_REFLECTION_OBJECT_PTR(ce); in ZEND_METHOD()
3593 if (ce->type == ZEND_USER_FUNCTION) { in ZEND_METHOD()
3594 RETURN_LONG(ce->info.user.line_start); in ZEND_METHOD()
3605 zend_class_entry *ce; in ZEND_METHOD() local
3610 GET_REFLECTION_OBJECT_PTR(ce); in ZEND_METHOD()
3611 if (ce->type == ZEND_USER_CLASS) { in ZEND_METHOD()
3612 RETURN_LONG(ce->info.user.line_end); in ZEND_METHOD()
3623 zend_class_entry *ce; in ZEND_METHOD() local
3628 GET_REFLECTION_OBJECT_PTR(ce); in ZEND_METHOD()
3629 if (ce->type == ZEND_USER_CLASS && ce->info.user.doc_comment) { in ZEND_METHOD()
3630 RETURN_STRINGL(ce->info.user.doc_comment, ce->info.user.doc_comment_len, 1); in ZEND_METHOD()
3641 zend_class_entry *ce; in ZEND_METHOD() local
3646 GET_REFLECTION_OBJECT_PTR(ce); in ZEND_METHOD()
3648 if (ce->constructor) { in ZEND_METHOD()
3649 reflection_method_factory(ce, ce->constructor, NULL, return_value TSRMLS_CC); in ZEND_METHOD()
3661 zend_class_entry *ce; in ZEND_METHOD() local
3670 GET_REFLECTION_OBJECT_PTR(ce); in ZEND_METHOD()
3672 if ((ce == zend_ce_closure && (name_len == sizeof(ZEND_INVOKE_FUNC_NAME)-1) in ZEND_METHOD()
3674 || zend_hash_exists(&ce->function_table, lc_name, name_len + 1)) { in ZEND_METHOD()
3689 zend_class_entry *ce; in ZEND_METHOD() local
3700 GET_REFLECTION_OBJECT_PTR(ce); in ZEND_METHOD()
3702 if (ce == zend_ce_closure && intern->obj && (name_len == sizeof(ZEND_INVOKE_FUNC_NAME)-1) in ZEND_METHOD()
3708 reflection_method_factory(ce, mptr, NULL, return_value TSRMLS_CC); in ZEND_METHOD()
3710 } else if (ce == zend_ce_closure && !intern->obj && (name_len == sizeof(ZEND_INVOKE_FUNC_NAME)-1) in ZEND_METHOD()
3712 …&& object_init_ex(&obj_tmp, ce) == SUCCESS && (mptr = zend_get_closure_invoke_method(&obj_tmp TSRM… in ZEND_METHOD()
3715 reflection_method_factory(ce, mptr, NULL, return_value TSRMLS_CC); in ZEND_METHOD()
3718 } else if (zend_hash_find(&ce->function_table, lc_name, name_len + 1, (void**) &mptr) == SUCCESS) { in ZEND_METHOD()
3719 reflection_method_factory(ce, mptr, NULL, return_value TSRMLS_CC); in ZEND_METHOD()
3731 static void _addmethod(zend_function *mptr, zend_class_entry *ce, zval *retval, long filter, zval *… in _addmethod() argument
3739 if (ce == zend_ce_closure && obj && (len == sizeof(ZEND_INVOKE_FUNC_NAME)-1) in _addmethod()
3748 reflection_method_factory(ce, mptr, NULL, method TSRMLS_CC); in _addmethod()
3757 zend_class_entry *ce = *va_arg(args, zend_class_entry**); in _addmethod_va() local
3762 _addmethod(mptr, ce, retval, filter, obj TSRMLS_CC); in _addmethod_va()
3772 zend_class_entry *ce; in ZEND_METHOD() local
3786 GET_REFLECTION_OBJECT_PTR(ce); in ZEND_METHOD()
3789 …zend_hash_apply_with_arguments(&ce->function_table TSRMLS_CC, (apply_func_args_t) _addmethod_va, 4… in ZEND_METHOD()
3790 if (intern->obj && instanceof_function(ce, zend_ce_closure TSRMLS_CC)) { in ZEND_METHOD()
3793 _addmethod(closure, ce, return_value, filter, intern->obj TSRMLS_CC); in ZEND_METHOD()
3806 zend_class_entry *ce; in ZEND_METHOD() local
3816 GET_REFLECTION_OBJECT_PTR(ce); in ZEND_METHOD()
3817 if (zend_hash_find(&ce->properties_info, name, name_len+1, (void **) &property_info) == SUCCESS) { in ZEND_METHOD()
3842 zend_class_entry *ce, **pce; in ZEND_METHOD() local
3852 GET_REFLECTION_OBJECT_PTR(ce); in ZEND_METHOD()
3853 if (zend_hash_find(&ce->properties_info, name, name_len + 1, (void**) &property_info) == SUCCESS) { in ZEND_METHOD()
3855 reflection_property_factory(ce, property_info, return_value TSRMLS_CC); in ZEND_METHOD()
3867 property_info_tmp.ce = ce; in ZEND_METHOD()
3869 reflection_property_factory(ce, &property_info_tmp, return_value TSRMLS_CC); in ZEND_METHOD()
3891 if (!instanceof_function(ce, *pce TSRMLS_CC)) { in ZEND_METHOD()
3892 …qualified property name %s::%s does not specify a base class of %s", (*pce)->name, name, ce->name); in ZEND_METHOD()
3895 ce = *pce; in ZEND_METHOD()
3897 …if (zend_hash_find(&ce->properties_info, name, name_len + 1, (void**) &property_info) == SUCCESS &… in ZEND_METHOD()
3898 reflection_property_factory(ce, property_info, return_value TSRMLS_CC); in ZEND_METHOD()
3911 zend_class_entry *ce = *va_arg(args, zend_class_entry**); in _addproperty() local
3921 reflection_property_factory(ce, pptr, property TSRMLS_CC); in _addproperty()
3932 zend_class_entry *ce = *va_arg(args, zend_class_entry**); in _adddynproperty() local
3947 if (zend_get_property_info(ce, &member, 1 TSRMLS_CC) == &EG(std_property_info)) { in _adddynproperty()
3950 reflection_property_factory(ce, &EG(std_property_info), property TSRMLS_CC); in _adddynproperty()
3962 zend_class_entry *ce; in ZEND_METHOD() local
3976 GET_REFLECTION_OBJECT_PTR(ce); in ZEND_METHOD()
3979 …zend_hash_apply_with_arguments(&ce->properties_info TSRMLS_CC, (apply_func_args_t) _addproperty, 3… in ZEND_METHOD()
3983 …zend_hash_apply_with_arguments(properties TSRMLS_CC, (apply_func_args_t) _adddynproperty, 2, &ce, … in ZEND_METHOD()
3993 zend_class_entry *ce; in ZEND_METHOD() local
4002 GET_REFLECTION_OBJECT_PTR(ce); in ZEND_METHOD()
4003 if (zend_hash_exists(&ce->constants_table, name, name_len + 1)) { in ZEND_METHOD()
4017 zend_class_entry *ce; in ZEND_METHOD() local
4022 GET_REFLECTION_OBJECT_PTR(ce); in ZEND_METHOD()
4024 …zend_hash_apply_with_argument(&ce->constants_table, (apply_func_arg_t)zval_update_constant_inline_… in ZEND_METHOD()
4025 …zend_hash_copy(Z_ARRVAL_P(return_value), &ce->constants_table, (copy_ctor_func_t) zval_add_ref, (v… in ZEND_METHOD()
4034 zend_class_entry *ce; in ZEND_METHOD() local
4044 GET_REFLECTION_OBJECT_PTR(ce); in ZEND_METHOD()
4045 …zend_hash_apply_with_argument(&ce->constants_table, (apply_func_arg_t)zval_update_constant_inline_… in ZEND_METHOD()
4046 if (zend_hash_find(&ce->constants_table, name, name_len + 1, (void **) &value) == FAILURE) { in ZEND_METHOD()
4057 zend_class_entry *ce; in _class_check_flag() local
4062 GET_REFLECTION_OBJECT_PTR(ce); in _class_check_flag()
4063 RETVAL_BOOL(ce->ce_flags & mask); in _class_check_flag()
4072 zend_class_entry *ce; in ZEND_METHOD() local
4077 GET_REFLECTION_OBJECT_PTR(ce); in ZEND_METHOD()
4078 …if (ce->ce_flags & (ZEND_ACC_INTERFACE | ZEND_ACC_EXPLICIT_ABSTRACT_CLASS | ZEND_ACC_IMPLICIT_ABST… in ZEND_METHOD()
4084 if (!ce->constructor) { in ZEND_METHOD()
4088 RETURN_BOOL(ce->constructor->common.fn_flags & ZEND_ACC_PUBLIC); in ZEND_METHOD()
4097 zend_class_entry *ce; in ZEND_METHOD() local
4103 GET_REFLECTION_OBJECT_PTR(ce); in ZEND_METHOD()
4104 …if (ce->ce_flags & (ZEND_ACC_INTERFACE | ZEND_ACC_TRAIT | ZEND_ACC_EXPLICIT_ABSTRACT_CLASS | ZEND_… in ZEND_METHOD()
4108 if (ce->clone) { in ZEND_METHOD()
4109 RETURN_BOOL(ce->clone->common.fn_flags & ZEND_ACC_PUBLIC); in ZEND_METHOD()
4114 if (ce->clone) { in ZEND_METHOD()
4115 RETURN_BOOL(ce->clone->common.fn_flags & ZEND_ACC_PUBLIC); in ZEND_METHOD()
4117 object_init_ex(&obj, ce); in ZEND_METHOD()
4162 zend_class_entry *ce; in ZEND_METHOD() local
4167 GET_REFLECTION_OBJECT_PTR(ce); in ZEND_METHOD()
4169 RETURN_LONG(ce->ce_flags); in ZEND_METHOD()
4178 zend_class_entry *ce; in ZEND_METHOD() local
4185 GET_REFLECTION_OBJECT_PTR(ce); in ZEND_METHOD()
4186 RETURN_BOOL(HAS_CLASS_ENTRY(*object) && instanceof_function(Z_OBJCE_P(object), ce TSRMLS_CC)); in ZEND_METHOD()
4196 zend_class_entry *ce, *old_scope; in ZEND_METHOD() local
4200 GET_REFLECTION_OBJECT_PTR(ce); in ZEND_METHOD()
4202 object_init_ex(return_value, ce); in ZEND_METHOD()
4205 EG(scope) = ce; in ZEND_METHOD()
4217 …x(reflection_exception_ptr, 0 TSRMLS_CC, "Access to non-public constructor of class %s", ce->name); in ZEND_METHOD()
4253 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Invocation of %s's constructor failed", ce->name); in ZEND_METHOD()
4264 …C, "Class %s does not have a constructor, so you cannot pass any constructor arguments", ce->name); in ZEND_METHOD()
4274 zend_class_entry *ce; in ZEND_METHOD() local
4277 GET_REFLECTION_OBJECT_PTR(ce); in ZEND_METHOD()
4279 if (ce->create_object != NULL) { in ZEND_METHOD()
4280 …s %s is an internal class that cannot be instantiated without invoking its constructor", ce->name); in ZEND_METHOD()
4283 object_init_ex(return_value, ce); in ZEND_METHOD()
4293 zend_class_entry *ce, *old_scope; in ZEND_METHOD() local
4300 GET_REFLECTION_OBJECT_PTR(ce); in ZEND_METHOD()
4310 object_init_ex(return_value, ce); in ZEND_METHOD()
4313 EG(scope) = ce; in ZEND_METHOD()
4324 …x(reflection_exception_ptr, 0 TSRMLS_CC, "Access to non-public constructor of class %s", ce->name); in ZEND_METHOD()
4358 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Invocation of %s's constructor failed", ce->name); in ZEND_METHOD()
4369 …C, "Class %s does not have a constructor, so you cannot pass any constructor arguments", ce->name); in ZEND_METHOD()
4379 zend_class_entry *ce; in ZEND_METHOD() local
4384 GET_REFLECTION_OBJECT_PTR(ce); in ZEND_METHOD()
4389 if (ce->num_interfaces) { in ZEND_METHOD()
4392 for (i=0; i < ce->num_interfaces; i++) { in ZEND_METHOD()
4395 zend_reflection_class_factory(ce->interfaces[i], interface TSRMLS_CC); in ZEND_METHOD()
4396 …add_assoc_zval_ex(return_value, ce->interfaces[i]->name, ce->interfaces[i]->name_length + 1, inter… in ZEND_METHOD()
4407 zend_class_entry *ce; in ZEND_METHOD() local
4413 GET_REFLECTION_OBJECT_PTR(ce); in ZEND_METHOD()
4418 for (i=0; i < ce->num_interfaces; i++) { in ZEND_METHOD()
4419 add_next_index_stringl(return_value, ce->interfaces[i]->name, ce->interfaces[i]->name_length, 1); in ZEND_METHOD()
4429 zend_class_entry *ce; in ZEND_METHOD() local
4435 GET_REFLECTION_OBJECT_PTR(ce); in ZEND_METHOD()
4439 for (i=0; i < ce->num_traits; i++) { in ZEND_METHOD()
4442 zend_reflection_class_factory(ce->traits[i], trait TSRMLS_CC); in ZEND_METHOD()
4443 add_assoc_zval_ex(return_value, ce->traits[i]->name, ce->traits[i]->name_length + 1, trait); in ZEND_METHOD()
4453 zend_class_entry *ce; in ZEND_METHOD() local
4459 GET_REFLECTION_OBJECT_PTR(ce); in ZEND_METHOD()
4463 for (i=0; i < ce->num_traits; i++) { in ZEND_METHOD()
4464 add_next_index_stringl(return_value, ce->traits[i]->name, ce->traits[i]->name_length, 1); in ZEND_METHOD()
4474 zend_class_entry *ce; in ZEND_METHOD() local
4479 GET_REFLECTION_OBJECT_PTR(ce); in ZEND_METHOD()
4483 if (ce->trait_aliases) { in ZEND_METHOD()
4485 while (ce->trait_aliases[i]) { in ZEND_METHOD()
4488 zend_trait_method_reference *cur_ref = ce->trait_aliases[i]->trait_method; in ZEND_METHOD()
4490 if (ce->trait_aliases[i]->alias) { in ZEND_METHOD()
4491 method_name_len = spprintf(&method_name, 0, "%s::%s", cur_ref->ce->name, cur_ref->method_name); in ZEND_METHOD()
4492 …add_assoc_stringl_ex(return_value, ce->trait_aliases[i]->alias, ce->trait_aliases[i]->alias_len + … in ZEND_METHOD()
4505 zend_class_entry *ce; in ZEND_METHOD() local
4510 GET_REFLECTION_OBJECT_PTR(ce); in ZEND_METHOD()
4512 if (ce->parent) { in ZEND_METHOD()
4513 zend_reflection_class_factory(ce->parent, return_value TSRMLS_CC); in ZEND_METHOD()
4525 zend_class_entry *ce, **pce, *class_ce; in ZEND_METHOD() local
4529 GET_REFLECTION_OBJECT_PTR(ce); in ZEND_METHOD()
4561 RETURN_BOOL((ce != class_ce && instanceof_function(ce, class_ce TSRMLS_CC))); in ZEND_METHOD()
4570 zend_class_entry *ce, *interface_ce, **pce; in ZEND_METHOD() local
4574 GET_REFLECTION_OBJECT_PTR(ce); in ZEND_METHOD()
4611 RETURN_BOOL(instanceof_function(ce, interface_ce TSRMLS_CC)); in ZEND_METHOD()
4620 zend_class_entry *ce; in ZEND_METHOD() local
4627 GET_REFLECTION_OBJECT_PTR(ce); in ZEND_METHOD()
4629 RETURN_BOOL(ce->get_iterator != NULL); in ZEND_METHOD()
4638 zend_class_entry *ce; in ZEND_METHOD() local
4645 GET_REFLECTION_OBJECT_PTR(ce); in ZEND_METHOD()
4647 if ((ce->type == ZEND_INTERNAL_CLASS) && ce->info.internal.module) { in ZEND_METHOD()
4648 reflection_extension_factory(return_value, ce->info.internal.module->name TSRMLS_CC); in ZEND_METHOD()
4658 zend_class_entry *ce; in ZEND_METHOD() local
4665 GET_REFLECTION_OBJECT_PTR(ce); in ZEND_METHOD()
4667 if ((ce->type == ZEND_INTERNAL_CLASS) && ce->info.internal.module) { in ZEND_METHOD()
4668 RETURN_STRING(ce->info.internal.module->name, 1); in ZEND_METHOD()
4779 zend_class_entry *ce; in ZEND_METHOD() local
4801 ce = *pce; in ZEND_METHOD()
4805 ce = Z_OBJCE_P(classname); in ZEND_METHOD()
4813 …if (zend_hash_find(&ce->properties_info, name_str, name_len + 1, (void **) &property_info) == FAIL… in ZEND_METHOD()
4821 …n_ex(reflection_exception_ptr, 0 TSRMLS_CC, "Property %s::$%s does not exist", ce->name, name_str); in ZEND_METHOD()
4828 zend_class_entry *tmp_ce = ce; in ZEND_METHOD()
4832 ce = tmp_ce; in ZEND_METHOD()
4843 ZVAL_STRINGL(classname, property_info->ce->name, property_info->ce->name_length, 1); in ZEND_METHOD()
4846 ZVAL_STRINGL(classname, ce->name, ce->name_length, 1); in ZEND_METHOD()
4859 reference->prop.ce = ce; in ZEND_METHOD()
4863 reference->ce = ce; in ZEND_METHOD()
4866 intern->ce = ce; in ZEND_METHOD()
4984 "Cannot access non-public member %s::%s", intern->ce->name, Z_STRVAL(name)); in ZEND_METHOD()
4990 zend_update_class_constants(intern->ce TSRMLS_CC); in ZEND_METHOD()
4991 if (!CE_STATIC_MEMBERS(intern->ce)[ref->prop.offset]) { in ZEND_METHOD()
4992 …CC, E_ERROR, "Internal error: Could not find the property %s::%s", intern->ce->name, ref->prop.nam… in ZEND_METHOD()
4995 *return_value= *CE_STATIC_MEMBERS(intern->ce)[ref->prop.offset]; in ZEND_METHOD()
5005 member_p = zend_read_property(ref->ce, object, prop_name, strlen(prop_name), 1 TSRMLS_CC); in ZEND_METHOD()
5032 "Cannot access non-public member %s::%s", intern->ce->name, Z_STRVAL(name)); in ZEND_METHOD()
5043 zend_update_class_constants(intern->ce TSRMLS_CC); in ZEND_METHOD()
5045 if (!CE_STATIC_MEMBERS(intern->ce)[ref->prop.offset]) { in ZEND_METHOD()
5046 …CC, E_ERROR, "Internal error: Could not find the property %s::%s", intern->ce->name, ref->prop.nam… in ZEND_METHOD()
5049 variable_ptr = &CE_STATIC_MEMBERS(intern->ce)[ref->prop.offset]; in ZEND_METHOD()
5080 zend_update_property(ref->ce, object, prop_name, strlen(prop_name), value TSRMLS_CC); in ZEND_METHOD()
5091 zend_class_entry *tmp_ce, *ce; in ZEND_METHOD() local
5106 ce = tmp_ce = ref->ce; in ZEND_METHOD()
5112 ce = tmp_ce; in ZEND_METHOD()
5113 if (tmp_ce == tmp_info->ce) { in ZEND_METHOD()
5120 zend_reflection_class_factory(ce, return_value TSRMLS_CC); in ZEND_METHOD()
5207 intern->ce = NULL; in ZEND_METHOD()
5566 intern->ce = NULL; in ZEND_METHOD()