http_support
(PECL pecl_http:0.15.0-1.5.5)
http_support — 組み込みの HTTP サポートを調べる
説明
int http_support
([ int $feature = 0
] )
外部ライブラリを必要とする機能について調べます。
引数 feature に指定可能な値については サポートする機能の定数の表 を参照ください。
パラメータ
- feature
-
調査する機能。
返り値
指定された機能がサポートされているかどうかを表す integer 値、 あるいは feature を省略した場合はサポートされる全機能のビットマスクを返します。
例
Example#1 http_support() の例
<?php
if (!http_support(HTTP_SUPPORT_REQUESTS)) {
die("Need HTTP request support!\n");
}
?>