radius_put_int
(PECL radius >= 1.1.0)
radius_put_int — Attaches an integer attribute
Описание
$radius_handle
, int $type
, int $value
, int $options = 0
, int $tag = ?
) : boolAttaches an integer attribute to the current RADIUS request.
Замечание:
Перед вызовом данной функции необходимо создать запрос с помощью функции radius_create_request().
Список параметров
-
radius_handle -
Ресурс RADIUS.
-
type -
Тип атрибута.
-
value -
The attribute value.
-
options -
Битовая маска опций атрибута. В качестве значений можно использовать
RADIUS_OPTION_TAGGEDиRADIUS_OPTION_SALT. -
tag -
Тег атрибута. Данный параметр игнорируется, если не установлена опция
RADIUS_OPTION_TAGGED.
Возвращаемые значения
Возвращает true в случае успешного завершения или false в случае возникновения ошибки.
Список изменений
| Версия | Описание |
|---|---|
| PECL radius 1.3.0 |
The options and tag
parameters were added.
|
Примеры
Пример #1 radius_put_int() example
<?php
if (!radius_put_int($res, RAD_FRAMED_PROTOCOL, RAD_PPP)) {
echo 'RadiusError:' . radius_strerror($res). "\n<br />";
exit;
}
?>
Смотрите также
- radius_put_string() - Attaches a string attribute
- radius_put_vendor_int() - Attaches a vendor specific integer attribute
- radius_put_vendor_string() - Attaches a vendor specific string attribute