radius_put_int
PHP function
Edit on GitHub ✎
(PECL radius >= 1.1.0)
Attaches an integer attribute
Description
radius_put_int(resource $radius_handle, int $type, int $value, int $options = 0, [int $tag]): bool
Attaches an integer attribute to the current RADIUS request.
Required
Parameters
valueThe attribute value.
Return Values
Success
Changelog
| Version | Description |
|---|---|
| PECL radius 1.3.0 | The options and tag parameters were added. |
Examples
radius_put_int() example
php
<?php
if (!radius_put_int($res, RAD_FRAMED_PROTOCOL, RAD_PPP)) {
echo 'RadiusError:' . radius_strerror($res). "\n<br />";
exit;
}
?>