http_support
(PECL pecl_http:0.15.0-1.5.5)
http_support — Check built-in HTTP support
Parameters
-
feature
-
feature to probe for
Return Values
Returns integer, whether requested feature is supported,
or a bitmask with all supported features if feature
was omitted.
Examples
Example #1 A http_support() example
<?php
if (!http_support(HTTP_SUPPORT_REQUESTS)) {
die("Need HTTP request support!\n");
}
?>