Lines Matching refs:info

892 ZEND_COLD zend_never_inline void zend_verify_property_type_error(zend_property_info *info, zval *pr…  in zend_verify_property_type_error()  argument
902 zend_format_type(info->type, &prop_type1, &prop_type2); in zend_verify_property_type_error()
904 if (ZEND_TYPE_IS_CLASS(info->type)) { in zend_verify_property_type_error()
906 ZSTR_VAL(info->ce->name), in zend_verify_property_type_error()
907 zend_get_unmangled_property_name(info->name), in zend_verify_property_type_error()
909 ZEND_TYPE_ALLOW_NULL(info->type) ? " or null" : "", in zend_verify_property_type_error()
913 ZSTR_VAL(info->ce->name), in zend_verify_property_type_error()
914 zend_get_unmangled_property_name(info->name), in zend_verify_property_type_error()
916 ZEND_TYPE_ALLOW_NULL(info->type) ? " or null" : "", in zend_verify_property_type_error()
951 static zend_always_inline zend_bool i_zend_check_property_type(zend_property_info *info, zval *prop… in i_zend_check_property_type() argument
954 if (ZEND_TYPE_IS_CLASS(info->type)) { in i_zend_check_property_type()
956 return Z_TYPE_P(property) == IS_NULL && ZEND_TYPE_ALLOW_NULL(info->type); in i_zend_check_property_type()
959 …if (UNEXPECTED(!ZEND_TYPE_IS_CE(info->type)) && UNEXPECTED(!zend_resolve_class_type(&info->type, i… in i_zend_check_property_type()
963 return instanceof_function(Z_OBJCE_P(property), ZEND_TYPE_CE(info->type)); in i_zend_check_property_type()
966 ZEND_ASSERT(ZEND_TYPE_CODE(info->type) != IS_CALLABLE); in i_zend_check_property_type()
967 if (EXPECTED(ZEND_TYPE_CODE(info->type) == Z_TYPE_P(property))) { in i_zend_check_property_type()
970 return ZEND_TYPE_ALLOW_NULL(info->type); in i_zend_check_property_type()
971 …} else if (ZEND_TYPE_CODE(info->type) == _IS_BOOL && EXPECTED(Z_TYPE_P(property) == IS_FALSE || Z_… in i_zend_check_property_type()
973 } else if (ZEND_TYPE_CODE(info->type) == IS_ITERABLE) { in i_zend_check_property_type()
976 return zend_verify_scalar_type_hint(ZEND_TYPE_CODE(info->type), property, strict); in i_zend_check_property_type()
980 static zend_bool zend_always_inline i_zend_verify_property_type(zend_property_info *info, zval *pro… in i_zend_verify_property_type() argument
982 if (i_zend_check_property_type(info, property, strict)) { in i_zend_verify_property_type()
986 zend_verify_property_type_error(info, property); in i_zend_verify_property_type()
990 zend_bool zend_never_inline zend_verify_property_type(zend_property_info *info, zval *property, zen… in zend_verify_property_type() argument
991 return i_zend_verify_property_type(info, property, strict); in zend_verify_property_type()
994 static zend_never_inline zval* zend_assign_to_typed_prop(zend_property_info *info, zval *property_v… in zend_assign_to_typed_prop() argument
1001 if (UNEXPECTED(!i_zend_verify_property_type(info, &tmp, EX_USES_STRICT_TYPES()))) { in zend_assign_to_typed_prop()