array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'pt_BR', ), 'this' => array ( 0 => 'function.radius-put-int.php', 1 => 'radius_put_int', ), 'up' => array ( 0 => 'ref.radius.php', 1 => 'Radius Funções', ), 'prev' => array ( 0 => 'function.radius-put-attr.php', 1 => 'radius_put_attr', ), 'next' => array ( 0 => 'function.radius-put-string.php', 1 => 'radius_put_string', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/radius/functions/radius-put-int.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PECL radius >= 1.1.0)
radius_put_int — Attaches an integer attribute
$radius_handle
,$type
,$value
,$options
= 0,$tag
= ?Attaches an integer attribute to the current RADIUS request.
Nota:
Uma requisição deve ser criada por meio de radius_create_request() antes que esta função possa ser chamada.
radius_handle
O resource RADIUS.
type
O tipo de atributo.
value
The attribute value.
options
Uma máscara de bits das opções de atributo. As opções disponíveis incluem RADIUS_OPTION_TAGGED
e RADIUS_OPTION_SALT
.
tag
A tag de atributo. Este parâmetro é ignorado, a menos que a opção RADIUS_OPTION_TAGGED
esteja definida.
Versão | Descrição |
---|---|
PECL radius 1.3.0 |
The options and tag
parameters were added.
|
Exemplo #1 radius_put_int() example
<?php
if (!radius_put_int($res, RAD_FRAMED_PROTOCOL, RAD_PPP)) {
echo 'RadiusError:' . radius_strerror($res). "\n<br />";
exit;
}
?>