Lines Matching refs:intern
92 intern = Z_REFLECTION_P(getThis()); \
93 if (intern->ptr == NULL) { \
101 …target = intern->ptr; …
235 reflection_object *intern = reflection_object_from_obj(object); in reflection_free_objects_storage() local
240 if (intern->ptr) { in reflection_free_objects_storage()
241 switch (intern->ref_type) { in reflection_free_objects_storage()
243 reference = (parameter_reference*)intern->ptr; in reflection_free_objects_storage()
245 efree(intern->ptr); in reflection_free_objects_storage()
248 typ_reference = (type_reference*)intern->ptr; in reflection_free_objects_storage()
250 efree(intern->ptr); in reflection_free_objects_storage()
253 _free_function(intern->ptr); in reflection_free_objects_storage()
256 efree(intern->ptr); in reflection_free_objects_storage()
259 prop_reference = (property_reference*)intern->ptr; in reflection_free_objects_storage()
261 efree(intern->ptr); in reflection_free_objects_storage()
269 intern->ptr = NULL; in reflection_free_objects_storage()
270 zval_ptr_dtor(&intern->obj); in reflection_free_objects_storage()
277 reflection_object *intern = Z_REFLECTION_P(obj); in reflection_get_gc() local
278 *gc_data = &intern->obj; in reflection_get_gc()
286 reflection_object *intern; in reflection_objects_new() local
288 intern = ecalloc(1, sizeof(reflection_object) + zend_object_properties_size(class_type)); in reflection_objects_new()
289 intern->zo.ce = class_type; in reflection_objects_new()
291 zend_object_std_init(&intern->zo, class_type); in reflection_objects_new()
292 object_properties_init(&intern->zo, class_type); in reflection_objects_new()
293 intern->zo.handlers = &reflection_object_handlers; in reflection_objects_new()
294 return &intern->zo; in reflection_objects_new()
1107 reflection_object *intern; in _function_check_flag() local
1121 reflection_object *intern; in zend_reflection_class_factory() local
1126 intern = Z_REFLECTION_P(object); in zend_reflection_class_factory()
1127 intern->ptr = ce; in zend_reflection_class_factory()
1128 intern->ref_type = REF_TYPE_OTHER; in zend_reflection_class_factory()
1129 intern->ce = ce; in zend_reflection_class_factory()
1137 reflection_object *intern; in reflection_extension_factory() local
1152 intern = Z_REFLECTION_P(object); in reflection_extension_factory()
1154 intern->ptr = module; in reflection_extension_factory()
1155 intern->ref_type = REF_TYPE_OTHER; in reflection_extension_factory()
1156 intern->ce = NULL; in reflection_extension_factory()
1164 reflection_object *intern; in reflection_parameter_factory() local
1179 intern = Z_REFLECTION_P(object); in reflection_parameter_factory()
1185 intern->ptr = reference; in reflection_parameter_factory()
1186 intern->ref_type = REF_TYPE_PARAMETER; in reflection_parameter_factory()
1187 intern->ce = fptr->common.scope; in reflection_parameter_factory()
1190 ZVAL_COPY_VALUE(&intern->obj, closure_object); in reflection_parameter_factory()
1199 reflection_object *intern; in reflection_type_factory() local
1203 intern = Z_REFLECTION_P(object); in reflection_type_factory()
1207 intern->ptr = reference; in reflection_type_factory()
1208 intern->ref_type = REF_TYPE_TYPE; in reflection_type_factory()
1209 intern->ce = fptr->common.scope; in reflection_type_factory()
1212 ZVAL_COPY_VALUE(&intern->obj, closure_object); in reflection_type_factory()
1220 reflection_object *intern; in reflection_function_factory() local
1226 intern = Z_REFLECTION_P(object); in reflection_function_factory()
1227 intern->ptr = function; in reflection_function_factory()
1228 intern->ref_type = REF_TYPE_FUNCTION; in reflection_function_factory()
1229 intern->ce = NULL; in reflection_function_factory()
1232 ZVAL_COPY_VALUE(&intern->obj, closure_object); in reflection_function_factory()
1241 reflection_object *intern; in reflection_method_factory() local
1249 intern = Z_REFLECTION_P(object); in reflection_method_factory()
1250 intern->ptr = method; in reflection_method_factory()
1251 intern->ref_type = REF_TYPE_FUNCTION; in reflection_method_factory()
1252 intern->ce = ce; in reflection_method_factory()
1255 ZVAL_COPY_VALUE(&intern->obj, closure_object); in reflection_method_factory()
1265 reflection_object *intern; in reflection_property_factory() local
1295 intern = Z_REFLECTION_P(object); in reflection_property_factory()
1299 intern->ptr = reference; in reflection_property_factory()
1300 intern->ref_type = REF_TYPE_PROPERTY; in reflection_property_factory()
1301 intern->ce = ce; in reflection_property_factory()
1302 intern->ignore_visibility = 0; in reflection_property_factory()
1311 reflection_object *intern; in reflection_class_constant_factory() local
1319 intern = Z_REFLECTION_P(object); in reflection_class_constant_factory()
1320 intern->ptr = constant; in reflection_class_constant_factory()
1321 intern->ref_type = REF_TYPE_CLASS_CONSTANT; in reflection_class_constant_factory()
1322 intern->ce = constant->ce; in reflection_class_constant_factory()
1323 intern->ignore_visibility = 0; in reflection_class_constant_factory()
1423 reflection_object *intern; in _reflection_param_get_default_param() local
1426 intern = Z_REFLECTION_P(getThis()); in _reflection_param_get_default_param()
1427 if (intern->ptr == NULL) { in _reflection_param_get_default_param()
1435 param = intern->ptr; in _reflection_param_get_default_param()
1569 reflection_object *intern; in ZEND_METHOD() local
1575 intern = Z_REFLECTION_P(object); in ZEND_METHOD()
1605 intern->ptr = fptr; in ZEND_METHOD()
1606 intern->ref_type = REF_TYPE_FUNCTION; in ZEND_METHOD()
1608 ZVAL_COPY_VALUE(&intern->obj, closure); in ZEND_METHOD()
1610 ZVAL_UNDEF(&intern->obj); in ZEND_METHOD()
1612 intern->ce = NULL; in ZEND_METHOD()
1620 reflection_object *intern; in ZEND_METHOD() local
1628 _function_string(&str, fptr, intern->ce, ""); in ZEND_METHOD()
1648 reflection_object *intern; in ZEND_METHOD() local
1663 reflection_object *intern; in ZEND_METHOD() local
1670 if (!Z_ISUNDEF(intern->obj)) { in ZEND_METHOD()
1671 closure_this = zend_get_closure_this_ptr(&intern->obj); in ZEND_METHOD()
1683 reflection_object *intern; in ZEND_METHOD() local
1690 if (!Z_ISUNDEF(intern->obj)) { in ZEND_METHOD()
1691 closure_func = zend_get_closure_method_def(&intern->obj); in ZEND_METHOD()
1703 reflection_object *intern; in ZEND_METHOD() local
1711 if (!Z_ISUNDEF(intern->obj)) { in ZEND_METHOD()
1713 ZVAL_COPY(return_value, &intern->obj); in ZEND_METHOD()
1724 reflection_object *intern; in ZEND_METHOD() local
1739 reflection_object *intern; in ZEND_METHOD() local
1754 reflection_object *intern; in ZEND_METHOD() local
1767 reflection_object *intern; in ZEND_METHOD() local
1785 reflection_object *intern; in ZEND_METHOD() local
1803 reflection_object *intern; in ZEND_METHOD() local
1821 reflection_object *intern; in ZEND_METHOD() local
1839 reflection_object *intern; in ZEND_METHOD() local
1876 reflection_object *intern; in ZEND_METHOD() local
1900 if (!Z_ISUNDEF(intern->obj)) { in ZEND_METHOD()
1901 Z_OBJ_HT(intern->obj)->get_closure( in ZEND_METHOD()
1902 &intern->obj, &fcc.called_scope, &fcc.function_handler, &fcc.object); in ZEND_METHOD()
1932 reflection_object *intern; in ZEND_METHOD() local
1966 if (!Z_ISUNDEF(intern->obj)) { in ZEND_METHOD()
1967 Z_OBJ_HT(intern->obj)->get_closure( in ZEND_METHOD()
1968 &intern->obj, &fcc.called_scope, &fcc.function_handler, &fcc.object); in ZEND_METHOD()
1997 reflection_object *intern; in ZEND_METHOD() local
2011 reflection_object *intern; in ZEND_METHOD() local
2031 reflection_object *intern; in ZEND_METHOD() local
2045 reflection_object *intern; in ZEND_METHOD() local
2065 Z_ISUNDEF(intern->obj) ? NULL : &intern->obj, in ZEND_METHOD()
2082 reflection_object *intern; in ZEND_METHOD() local
2106 reflection_object *intern; in ZEND_METHOD() local
2130 reflection_object *intern; in ZEND_METHOD() local
2134 intern = Z_REFLECTION_P(object); in ZEND_METHOD()
2146 intern->ref_type = REF_TYPE_GENERATOR; in ZEND_METHOD()
2147 ZVAL_COPY(&intern->obj, generator); in ZEND_METHOD()
2148 intern->ce = zend_ce_generator; in ZEND_METHOD()
2306 reflection_object *intern; in ZEND_METHOD() local
2319 intern = Z_REFLECTION_P(object); in ZEND_METHOD()
2485 intern->ptr = ref; in ZEND_METHOD()
2486 intern->ref_type = REF_TYPE_PARAMETER; in ZEND_METHOD()
2487 intern->ce = ce; in ZEND_METHOD()
2489 ZVAL_COPY_VALUE(&intern->obj, reference); in ZEND_METHOD()
2498 reflection_object *intern; in ZEND_METHOD() local
2527 reflection_object *intern; in ZEND_METHOD() local
2536 …reflection_function_factory(_copy_function(param->fptr), Z_ISUNDEF(intern->obj)? NULL : &intern->o… in ZEND_METHOD()
2538 …m->fptr->common.scope, _copy_function(param->fptr), Z_ISUNDEF(intern->obj)? NULL : &intern->obj, r… in ZEND_METHOD()
2547 reflection_object *intern; in ZEND_METHOD() local
2565 reflection_object *intern; in ZEND_METHOD() local
2627 reflection_object *intern; in ZEND_METHOD() local
2643 reflection_object *intern; in ZEND_METHOD() local
2654 …reflection_type_factory(_copy_function(param->fptr), Z_ISUNDEF(intern->obj)? NULL : &intern->obj, … in ZEND_METHOD()
2662 reflection_object *intern; in ZEND_METHOD() local
2678 reflection_object *intern; in ZEND_METHOD() local
2694 reflection_object *intern; in ZEND_METHOD() local
2710 reflection_object *intern; in ZEND_METHOD() local
2726 reflection_object *intern; in ZEND_METHOD() local
2743 reflection_object *intern; in ZEND_METHOD() local
2759 reflection_object *intern; in ZEND_METHOD() local
2775 reflection_object *intern; in ZEND_METHOD() local
2877 reflection_object *intern; in ZEND_METHOD() local
2893 reflection_object *intern; in ZEND_METHOD() local
2909 reflection_object *intern; in ZEND_METHOD() local
2944 reflection_object *intern; in ZEND_METHOD() local
2960 reflection_object *intern; in ZEND_METHOD() local
2986 reflection_object *intern; in ZEND_METHOD() local
3017 intern = Z_REFLECTION_P(object); in ZEND_METHOD()
3070 intern->ptr = mptr; in ZEND_METHOD()
3071 intern->ref_type = REF_TYPE_FUNCTION; in ZEND_METHOD()
3072 intern->ce = ce; in ZEND_METHOD()
3080 reflection_object *intern; in ZEND_METHOD() local
3088 _function_string(&str, mptr, intern->ce, ""); in ZEND_METHOD()
3097 reflection_object *intern; in ZEND_METHOD() local
3133 reflection_object *intern; in reflection_method_invoke() local
3147 && intern->ignore_visibility == 0) in reflection_method_invoke()
3221 fcc.called_scope = intern->ce; in reflection_method_invoke()
3417 reflection_object *intern; in ZEND_METHOD() local
3434 reflection_object *intern; in ZEND_METHOD() local
3447 …reflection_type_factory(_copy_function(fptr), Z_ISUNDEF(intern->obj)? NULL : &intern->obj, &fptr->… in ZEND_METHOD()
3455 reflection_object *intern; in ZEND_METHOD() local
3465 …RETURN_BOOL(mptr->common.fn_flags & ZEND_ACC_CTOR && intern->ce->constructor && intern->ce->constr… in ZEND_METHOD()
3473 reflection_object *intern; in ZEND_METHOD() local
3488 reflection_object *intern; in ZEND_METHOD() local
3506 reflection_object *intern; in ZEND_METHOD() local
3524 reflection_object *intern; in ZEND_METHOD() local
3536 …"Method %s::%s does not have a prototype", ZSTR_VAL(intern->ce->name), ZSTR_VAL(mptr->common.funct… in ZEND_METHOD()
3548 reflection_object *intern; in ZEND_METHOD() local
3555 intern = Z_REFLECTION_P(getThis()); in ZEND_METHOD()
3557 intern->ignore_visibility = visible; in ZEND_METHOD()
3567 reflection_object *intern; in ZEND_METHOD() local
3576 intern = Z_REFLECTION_P(object); in ZEND_METHOD()
3605 intern->ptr = constant; in ZEND_METHOD()
3606 intern->ref_type = REF_TYPE_CLASS_CONSTANT; in ZEND_METHOD()
3607 intern->ce = constant->ce; in ZEND_METHOD()
3608 intern->ignore_visibility = 0; in ZEND_METHOD()
3618 reflection_object *intern; in ZEND_METHOD() local
3647 reflection_object *intern; in _class_constant_check_flag() local
3686 reflection_object *intern; in ZEND_METHOD() local
3702 reflection_object *intern; in ZEND_METHOD() local
3721 reflection_object *intern; in ZEND_METHOD() local
3737 reflection_object *intern; in ZEND_METHOD() local
3765 reflection_object *intern; in reflection_class_object_ctor() local
3779 intern = Z_REFLECTION_P(object); in reflection_class_object_ctor()
3784 intern->ptr = Z_OBJCE_P(argument); in reflection_class_object_ctor()
3786 ZVAL_COPY_VALUE(&intern->obj, argument); in reflection_class_object_ctor()
3801 intern->ptr = ce; in reflection_class_object_ctor()
3803 intern->ref_type = REF_TYPE_OTHER; in reflection_class_object_ctor()
3862 reflection_object *intern; in ZEND_METHOD() local
3884 reflection_object *intern; in ZEND_METHOD() local
3918 reflection_object *intern; in ZEND_METHOD() local
3948 reflection_object *intern; in ZEND_METHOD() local
3968 reflection_object *intern; in ZEND_METHOD() local
3976 _class_string(&str, ce, &intern->obj, ""); in ZEND_METHOD()
3996 reflection_object *intern; in ZEND_METHOD() local
4011 reflection_object *intern; in ZEND_METHOD() local
4026 reflection_object *intern; in ZEND_METHOD() local
4041 reflection_object *intern; in ZEND_METHOD() local
4059 reflection_object *intern; in ZEND_METHOD() local
4077 reflection_object *intern; in ZEND_METHOD() local
4095 reflection_object *intern; in ZEND_METHOD() local
4113 reflection_object *intern; in ZEND_METHOD() local
4133 reflection_object *intern; in ZEND_METHOD() local
4161 reflection_object *intern; in ZEND_METHOD() local
4175 …if (ce == zend_ce_closure && !Z_ISUNDEF(intern->obj) && (name_len == sizeof(ZEND_INVOKE_FUNC_NAME)… in ZEND_METHOD()
4177 && (mptr = zend_get_closure_invoke_method(Z_OBJ(intern->obj))) != NULL) in ZEND_METHOD()
4184 …} else if (ce == zend_ce_closure && Z_ISUNDEF(intern->obj) && (name_len == sizeof(ZEND_INVOKE_FUNC… in ZEND_METHOD()
4233 reflection_object *intern; in ZEND_METHOD() local
4253 zend_bool has_obj = Z_TYPE(intern->obj) != IS_UNDEF; in ZEND_METHOD()
4260 obj = Z_OBJ(intern->obj); in ZEND_METHOD()
4278 reflection_object *intern; in ZEND_METHOD() local
4296 if (Z_TYPE(intern->obj) != IS_UNDEF && Z_OBJ_HANDLER(intern->obj, has_property)) { in ZEND_METHOD()
4298 if (Z_OBJ_HANDLER(intern->obj, has_property)(&intern->obj, &property, 2, NULL)) { in ZEND_METHOD()
4313 reflection_object *intern; in ZEND_METHOD() local
4331 } else if (Z_TYPE(intern->obj) != IS_UNDEF) { in ZEND_METHOD()
4333 if (zend_hash_exists(Z_OBJ_HT(intern->obj)->get_properties(&intern->obj), name)) { in ZEND_METHOD()
4341 intern = Z_REFLECTION_P(return_value); in ZEND_METHOD()
4342 intern->ref_type = REF_TYPE_DYNAMIC_PROPERTY; in ZEND_METHOD()
4440 reflection_object *intern; in ZEND_METHOD() local
4459 …if (Z_TYPE(intern->obj) != IS_UNDEF && (filter & ZEND_ACC_PUBLIC) != 0 && Z_OBJ_HT(intern->obj)->g… in ZEND_METHOD()
4460 HashTable *properties = Z_OBJ_HT(intern->obj)->get_properties(&intern->obj); in ZEND_METHOD()
4470 reflection_object *intern; in ZEND_METHOD() local
4492 reflection_object *intern; in ZEND_METHOD() local
4518 reflection_object *intern; in ZEND_METHOD() local
4540 reflection_object *intern; in ZEND_METHOD() local
4567 reflection_object *intern; in ZEND_METHOD() local
4587 reflection_object *intern; in _class_check_flag() local
4602 reflection_object *intern; in ZEND_METHOD() local
4627 reflection_object *intern; in ZEND_METHOD() local
4638 if (!Z_ISUNDEF(intern->obj)) { in ZEND_METHOD()
4642 RETURN_BOOL(Z_OBJ_HANDLER(intern->obj, clone_obj) != NULL); in ZEND_METHOD()
4694 reflection_object *intern; in ZEND_METHOD() local
4712 reflection_object *intern; in ZEND_METHOD() local
4730 reflection_object *intern; in ZEND_METHOD() local
4806 reflection_object *intern; in ZEND_METHOD() local
4826 reflection_object *intern; in ZEND_METHOD() local
4916 reflection_object *intern; in ZEND_METHOD() local
4943 reflection_object *intern; in ZEND_METHOD() local
4965 reflection_object *intern; in ZEND_METHOD() local
4988 reflection_object *intern; in ZEND_METHOD() local
5009 reflection_object *intern; in ZEND_METHOD() local
5041 reflection_object *intern; in ZEND_METHOD() local
5061 reflection_object *intern, *argument; in ZEND_METHOD() local
5105 reflection_object *intern, *argument; in ZEND_METHOD() local
5154 reflection_object *intern; in ZEND_METHOD() local
5177 reflection_object *intern; in ZEND_METHOD() local
5197 reflection_object *intern; in ZEND_METHOD() local
5326 reflection_object *intern; in ZEND_METHOD() local
5336 intern = Z_REFLECTION_P(object); in ZEND_METHOD()
5405 intern->ptr = reference; in ZEND_METHOD()
5406 intern->ref_type = REF_TYPE_PROPERTY; in ZEND_METHOD()
5407 intern->ce = ce; in ZEND_METHOD()
5408 intern->ignore_visibility = 0; in ZEND_METHOD()
5416 reflection_object *intern; in ZEND_METHOD() local
5442 reflection_object *intern; in _property_check_flag() local
5497 reflection_object *intern; in ZEND_METHOD() local
5514 reflection_object *intern; in ZEND_METHOD() local
5522 …if (!(ref->prop.flags & (ZEND_ACC_PUBLIC | ZEND_ACC_IMPLICIT_PUBLIC)) && intern->ignore_visibility… in ZEND_METHOD()
5525 "Cannot access non-public member %s::%s", ZSTR_VAL(intern->ce->name), Z_STRVAL_P(name)); in ZEND_METHOD()
5530 if (UNEXPECTED(zend_update_class_constants(intern->ce) != SUCCESS)) { in ZEND_METHOD()
5533 if (Z_TYPE(CE_STATIC_MEMBERS(intern->ce)[ref->prop.offset]) == IS_UNDEF) { in ZEND_METHOD()
5534 …zend_throw_error(NULL, "Internal error: Could not find the property %s::%s", ZSTR_VAL(intern->ce->… in ZEND_METHOD()
5537 member_p = &CE_STATIC_MEMBERS(intern->ce)[ref->prop.offset]; in ZEND_METHOD()
5573 reflection_object *intern; in ZEND_METHOD() local
5583 if (!(ref->prop.flags & ZEND_ACC_PUBLIC) && intern->ignore_visibility == 0) { in ZEND_METHOD()
5586 "Cannot access non-public member %s::%s", ZSTR_VAL(intern->ce->name), Z_STRVAL_P(name)); in ZEND_METHOD()
5596 if (UNEXPECTED(zend_update_class_constants(intern->ce) != SUCCESS)) { in ZEND_METHOD()
5600 if (Z_TYPE(CE_STATIC_MEMBERS(intern->ce)[ref->prop.offset]) == IS_UNDEF) { in ZEND_METHOD()
5601 …zend_throw_error(NULL, "Internal error: Could not find the property %s::%s", ZSTR_VAL(intern->ce->… in ZEND_METHOD()
5604 variable_ptr = &CE_STATIC_MEMBERS(intern->ce)[ref->prop.offset]; in ZEND_METHOD()
5635 reflection_object *intern; in ZEND_METHOD() local
5673 reflection_object *intern; in ZEND_METHOD() local
5691 reflection_object *intern; in ZEND_METHOD() local
5698 intern = Z_REFLECTION_P(getThis()); in ZEND_METHOD()
5700 intern->ignore_visibility = visible; in ZEND_METHOD()
5719 reflection_object *intern; in ZEND_METHOD() local
5730 intern = Z_REFLECTION_P(object); in ZEND_METHOD()
5742 intern->ptr = module; in ZEND_METHOD()
5743 intern->ref_type = REF_TYPE_OTHER; in ZEND_METHOD()
5744 intern->ce = NULL; in ZEND_METHOD()
5752 reflection_object *intern; in ZEND_METHOD() local
5780 reflection_object *intern; in ZEND_METHOD() local
5801 reflection_object *intern; in ZEND_METHOD() local
5841 reflection_object *intern; in ZEND_METHOD() local
5879 reflection_object *intern; in ZEND_METHOD() local
5925 reflection_object *intern; in ZEND_METHOD() local
5942 reflection_object *intern; in ZEND_METHOD() local
5959 reflection_object *intern; in ZEND_METHOD() local
6026 reflection_object *intern; in ZEND_METHOD() local
6042 reflection_object *intern; in ZEND_METHOD() local
6058 reflection_object *intern; in ZEND_METHOD() local
6084 reflection_object *intern; in ZEND_METHOD() local
6094 intern = Z_REFLECTION_P(object); in ZEND_METHOD()
6104 intern->ptr = extension; in ZEND_METHOD()
6105 intern->ref_type = REF_TYPE_OTHER; in ZEND_METHOD()
6106 intern->ce = NULL; in ZEND_METHOD()
6114 reflection_object *intern; in ZEND_METHOD() local
6131 reflection_object *intern; in ZEND_METHOD() local
6147 reflection_object *intern; in ZEND_METHOD() local
6167 reflection_object *intern; in ZEND_METHOD() local
6187 reflection_object *intern; in ZEND_METHOD() local
6207 reflection_object *intern; in ZEND_METHOD() local