http_persistent_handles_count
(PECL pecl_http >= 1.5.0)
http_persistent_handles_count — 持続ハンドルの状況
説明
object http_persistent_handles_count
( void
)
持続ハンドルの使用状況についての一覧を取得します。
パラメータ
返り値
成功した場合には持続ハンドルの状況を表す stdClass オブジェクト、
失敗した場合に FALSE を返します。
例
例1 http_persistent_handles_count() の例
<?php
print_r(http_persistent_handles_count());
?>
上の例の出力は以下となります。
stdClass Object
(
[http_request] => Array
(
[GLOBAL] => Array
(
[used] => 0
[free] => 1
)
)
[http_request_datashare] => Array
(
[GLOBAL] => Array
(
[used] => 1
[free] => 0
)
)
[http_request_pool] => Array
(
)
)
参考
- http_persistent_handles_ident() - 持続ハンドルの ident を取得/設定する
- http_persistent_handles_clean() - 持続ハンドルを消去する