(PECL radius >= 1.1.0)
radius_put_string — 附加字串屬性
$radius_handle
,$type
,$value
,$options
= 0,$tag
= ?將字串屬性附加到目前的 RADIUS 請求。一般來說,radius_put_attr() 是一個更有用的附加字串屬性函式,因為它是二進位安全的。
注意事項:
在呼叫此函式之前,必須透過 radius_create_request() 建立請求。
radius_handle
RADIUS 資源。
type
屬性類型。
value
屬性值。底層函式庫預期此值以 null 終止,因此此參數不是二進位安全的。
options
tag
版本 | 說明 |
---|---|
PECL radius 1.3.0 | 新增了 options 和 tag 參數。 |
範例 #1 radius_put_string() 範例
<?php
if (!radius_put_string($res, RADIUS_USER_NAME, 'billy')) {
echo 'RadiusError:' . radius_strerror($res). "\n<br />";
exit;
}
?>