As of Version 8.0.17 the Session::listClients() method has not been implemented yet.(No version information available, might only be in Git)
Session::listClients — クライアントの一覧を取得する
この関数にはパラメータはありません。
現在接続しているクライアントを含んだ配列を返します。 配列の要素には、"client_id", "user", "host", および "sql_session" が含まれています。
例1 mysql_xdevapi\Session::listClients() の例
<?php
$session = mysql_xdevapi\getSession("mysqlx://user:password@localhost");
$ids = $session->listClients();
var_dump($ids);
?>上の例の出力は、 たとえば以下のようになります。
array(1) {
[0]=>
array(4) {
["client_id"]=>
int(61)
["user"]=>
string(4) "root"
["host"]=>
string(9) "localhost"
["sql_session"]=>
int(72)
}
}
As of Version 8.0.17 the Session::listClients() method has not been implemented yet.