Lines Matching refs:ref
183 static zend_always_inline uint32_t prop_get_flags(property_reference *ref) { in prop_get_flags() argument
184 return ref->prop ? ref->prop->flags : ZEND_ACC_PUBLIC; in prop_get_flags()
2378 parameter_reference *ref; in ZEND_METHOD() local
2534 ref = (parameter_reference*) emalloc(sizeof(parameter_reference)); in ZEND_METHOD()
2535 ref->arg_info = &arg_info[position]; in ZEND_METHOD()
2536 ref->offset = (uint32_t)position; in ZEND_METHOD()
2537 ref->required = (uint32_t)position < fptr->common.required_num_args; in ZEND_METHOD()
2538 ref->fptr = fptr; in ZEND_METHOD()
2540 intern->ptr = ref; in ZEND_METHOD()
3810 zend_class_constant *ref; in ZEND_METHOD() local
3817 GET_REFLECTION_OBJECT_PTR(ref); in ZEND_METHOD()
3829 _class_const_string(&str, Z_STR_P(name), ref, ""); in ZEND_METHOD()
3857 zend_class_constant *ref; in ZEND_METHOD() local
3863 GET_REFLECTION_OBJECT_PTR(ref); in ZEND_METHOD()
3865 if (!ZEND_TYPE_IS_SET(ref->type)) { in ZEND_METHOD()
3869 reflection_type_factory(ref->type, return_value, 1); in ZEND_METHOD()
3876 zend_class_constant *ref; in ZEND_METHOD() local
3882 GET_REFLECTION_OBJECT_PTR(ref); in ZEND_METHOD()
3883 RETVAL_BOOL(ZEND_TYPE_IS_SET(ref->type)); in ZEND_METHOD()
3889 zend_class_constant *ref; in _class_constant_check_flag() local
3894 GET_REFLECTION_OBJECT_PTR(ref); in _class_constant_check_flag()
3895 RETURN_BOOL(ZEND_CLASS_CONST_FLAGS(ref) & mask); in _class_constant_check_flag()
3930 zend_class_constant *ref; in ZEND_METHOD() local
3936 GET_REFLECTION_OBJECT_PTR(ref); in ZEND_METHOD()
3938 RETURN_LONG(ZEND_CLASS_CONST_FLAGS(ref) & keep_flags); in ZEND_METHOD()
3946 zend_class_constant *ref; in ZEND_METHOD() local
3951 GET_REFLECTION_OBJECT_PTR(ref); in ZEND_METHOD()
3961 if (Z_TYPE(ref->value) == IS_CONSTANT_AST) { in ZEND_METHOD()
3962 zend_result result = zend_update_class_constant(ref, Z_STR_P(name), ref->ce); in ZEND_METHOD()
3967 ZVAL_COPY_OR_DUP(return_value, &ref->value); in ZEND_METHOD()
3975 zend_class_constant *ref; in ZEND_METHOD() local
3980 GET_REFLECTION_OBJECT_PTR(ref); in ZEND_METHOD()
3982 zend_reflection_class_factory(ref->ce, return_value); in ZEND_METHOD()
3990 zend_class_constant *ref; in ZEND_METHOD() local
3995 GET_REFLECTION_OBJECT_PTR(ref); in ZEND_METHOD()
3996 if (ref->doc_comment) { in ZEND_METHOD()
3997 RETURN_STR_COPY(ref->doc_comment); in ZEND_METHOD()
4007 zend_class_constant *ref; in ZEND_METHOD() local
4009 GET_REFLECTION_OBJECT_PTR(ref); in ZEND_METHOD()
4012 ref->attributes, 0, ref->ce, ZEND_ATTRIBUTE_TARGET_CLASS_CONST, in ZEND_METHOD()
4013 ref->ce->type == ZEND_USER_CLASS ? ref->ce->info.user.filename : NULL); in ZEND_METHOD()
4020 zend_class_constant *ref; in ZEND_METHOD() local
4022 GET_REFLECTION_OBJECT_PTR(ref); in ZEND_METHOD()
4024 RETURN_BOOL(ZEND_CLASS_CONST_FLAGS(ref) & ZEND_CLASS_CONST_IS_CASE); in ZEND_METHOD()
4235 zend_reference *ref = Z_REF_P(variable_ptr); in ZEND_METHOD() local
4238 if (!zend_verify_ref_assignable_zval(ref, value, 0)) { in ZEND_METHOD()
5573 property_reference *ref; in ZEND_METHOD() local
5579 GET_REFLECTION_OBJECT_PTR(ref); in ZEND_METHOD()
5580 _property_string(&str, ref->prop, ZSTR_VAL(ref->unmangled_name), ""); in ZEND_METHOD()
5589 property_reference *ref; in ZEND_METHOD() local
5595 GET_REFLECTION_OBJECT_PTR(ref); in ZEND_METHOD()
5596 RETURN_STR_COPY(ref->unmangled_name); in ZEND_METHOD()
5603 property_reference *ref; in _property_check_flag() local
5608 GET_REFLECTION_OBJECT_PTR(ref); in _property_check_flag()
5609 RETURN_BOOL(prop_get_flags(ref) & mask); in _property_check_flag()
5650 property_reference *ref; in ZEND_METHOD() local
5655 GET_REFLECTION_OBJECT_PTR(ref); in ZEND_METHOD()
5656 RETURN_BOOL(ref->prop != NULL); in ZEND_METHOD()
5671 property_reference *ref; in ZEND_METHOD() local
5677 GET_REFLECTION_OBJECT_PTR(ref); in ZEND_METHOD()
5679 RETURN_LONG(prop_get_flags(ref) & keep_flags); in ZEND_METHOD()
5687 property_reference *ref; in ZEND_METHOD() local
5695 GET_REFLECTION_OBJECT_PTR(ref); in ZEND_METHOD()
5697 if (prop_get_flags(ref) & ZEND_ACC_STATIC) { in ZEND_METHOD()
5698 member_p = zend_read_static_property_ex(intern->ce, ref->unmangled_name, 0); in ZEND_METHOD()
5711 if (!instanceof_function(Z_OBJCE_P(object), ref->prop ? ref->prop->ce : intern->ce)) { in ZEND_METHOD()
5716 member_p = zend_read_property_ex(intern->ce, Z_OBJ_P(object), ref->unmangled_name, 0, &rv); in ZEND_METHOD()
5733 property_reference *ref; in ZEND_METHOD() local
5738 GET_REFLECTION_OBJECT_PTR(ref); in ZEND_METHOD()
5740 if (prop_get_flags(ref) & ZEND_ACC_STATIC) { in ZEND_METHOD()
5763 zend_update_static_property_ex(intern->ce, ref->unmangled_name, value); in ZEND_METHOD()
5769 zend_update_property_ex(intern->ce, Z_OBJ_P(object), ref->unmangled_name, value); in ZEND_METHOD()
5778 property_reference *ref; in ZEND_METHOD() local
5786 GET_REFLECTION_OBJECT_PTR(ref); in ZEND_METHOD()
5788 if (prop_get_flags(ref) & ZEND_ACC_STATIC) { in ZEND_METHOD()
5789 member_p = zend_read_static_property_ex(intern->ce, ref->unmangled_name, 1); in ZEND_METHOD()
5804 if (!instanceof_function(Z_OBJCE_P(object), ref->prop ? ref->prop->ce : intern->ce)) { in ZEND_METHOD()
5811 …retval = Z_OBJ_HT_P(object)->has_property(Z_OBJ_P(object), ref->unmangled_name, ZEND_PROPERTY_EXIS… in ZEND_METHOD()
5823 property_reference *ref; in ZEND_METHOD() local
5829 GET_REFLECTION_OBJECT_PTR(ref); in ZEND_METHOD()
5831 ce = ref->prop ? ref->prop->ce : intern->ce; in ZEND_METHOD()
5840 property_reference *ref; in ZEND_METHOD() local
5845 GET_REFLECTION_OBJECT_PTR(ref); in ZEND_METHOD()
5846 if (ref->prop && ref->prop->doc_comment) { in ZEND_METHOD()
5847 RETURN_STR_COPY(ref->prop->doc_comment); in ZEND_METHOD()
5857 property_reference *ref; in ZEND_METHOD() local
5859 GET_REFLECTION_OBJECT_PTR(ref); in ZEND_METHOD()
5861 if (ref->prop == NULL) { in ZEND_METHOD()
5866 ref->prop->attributes, 0, ref->prop->ce, ZEND_ATTRIBUTE_TARGET_PROPERTY, in ZEND_METHOD()
5867 ref->prop->ce->type == ZEND_USER_CLASS ? ref->prop->ce->info.user.filename : NULL); in ZEND_METHOD()
5886 property_reference *ref; in ZEND_METHOD() local
5892 GET_REFLECTION_OBJECT_PTR(ref); in ZEND_METHOD()
5894 if (!ref->prop || !ZEND_TYPE_IS_SET(ref->prop->type)) { in ZEND_METHOD()
5898 reflection_type_factory(ref->prop->type, return_value, 1); in ZEND_METHOD()
5906 property_reference *ref; in ZEND_METHOD() local
5912 GET_REFLECTION_OBJECT_PTR(ref); in ZEND_METHOD()
5914 RETVAL_BOOL(ref->prop && ZEND_TYPE_IS_SET(ref->prop->type)); in ZEND_METHOD()
5922 property_reference *ref; in ZEND_METHOD() local
5930 GET_REFLECTION_OBJECT_PTR(ref); in ZEND_METHOD()
5932 prop_info = ref->prop; in ZEND_METHOD()
5947 property_reference *ref; in ZEND_METHOD() local
5955 GET_REFLECTION_OBJECT_PTR(ref); in ZEND_METHOD()
5957 prop_info = ref->prop; in ZEND_METHOD()
6469 static bool is_ignorable_reference(HashTable *ht, zval *ref) { in is_ignorable_reference() argument
6470 if (Z_REFCOUNT_P(ref) != 1) { in is_ignorable_reference()
6476 return Z_TYPE_P(Z_REFVAL_P(ref)) != IS_ARRAY || Z_ARRVAL_P(Z_REFVAL_P(ref)) != ht; in is_ignorable_reference()
6994 zend_class_constant *ref; in ZEND_METHOD() local
6996 GET_REFLECTION_OBJECT_PTR(ref); in ZEND_METHOD()
6998 if (!(ZEND_CLASS_CONST_FLAGS(ref) & ZEND_CLASS_CONST_IS_CASE)) { in ZEND_METHOD()
7000 …_ex(reflection_exception_ptr, 0, "Constant %s::%s is not a case", ZSTR_VAL(ref->ce->name), Z_STRVA… in ZEND_METHOD()
7008 zend_class_constant *ref; in ZEND_METHOD() local
7013 GET_REFLECTION_OBJECT_PTR(ref); in ZEND_METHOD()
7015 zend_reflection_class_factory(ref->ce, return_value); in ZEND_METHOD()
7026 zend_class_constant *ref; in ZEND_METHOD() local
7028 GET_REFLECTION_OBJECT_PTR(ref); in ZEND_METHOD()
7030 if (ref->ce->enum_backing_type == IS_UNDEF) { in ZEND_METHOD()
7032 …ection_exception_ptr, 0, "Enum case %s::%s is not a backed case", ZSTR_VAL(ref->ce->name), Z_STRVA… in ZEND_METHOD()
7040 zend_class_constant *ref; in ZEND_METHOD() local
7045 GET_REFLECTION_OBJECT_PTR(ref); in ZEND_METHOD()
7047 if (Z_TYPE(ref->value) == IS_CONSTANT_AST) { in ZEND_METHOD()
7048 zval_update_constant_ex(&ref->value, ref->ce); in ZEND_METHOD()
7055 zval *member_p = zend_enum_fetch_case_value(Z_OBJ(ref->value)); in ZEND_METHOD()