X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=http_functions.c;h=98463a0027160a3afc039d10c4653d92bd21f874;hp=9bde4fb2792ceca13dd96a6eb9fe922ae38d0e1a;hb=6be753a288ed7a42e0cd19551d85eb8eb14c4566;hpb=eae9ca6014f5d2a20dab69407e80667bcb913ced diff --git a/http_functions.c b/http_functions.c index 9bde4fb..98463a0 100644 --- a/http_functions.c +++ b/http_functions.c @@ -513,7 +513,7 @@ PHP_FUNCTION(ob_etaghandler) } /* }}} */ -/* {{{ proto void http_throttle(double sec[, int bytes = 2097152]) +/* {{{ proto void http_throttle(double sec[, int bytes = 40960]) * * Sets the throttle delay and send buffer size for use with http_send() API. * Provides a basic throttling mechanism, which will yield the current process @@ -956,7 +956,7 @@ PHP_FUNCTION(http_match_request_header) * - compress: bool, whether to allow gzip/deflate content encoding * (defaults to true) * - port: int, use another port as specified in the url - * - referer: string, the referer to sends + * - referer: string, the referer to send * - useragent: string, the user agent to send * (defaults to PECL::HTTP/version (PHP/version))) * - headers: array, list of custom headers as associative array @@ -1602,20 +1602,22 @@ PHP_FUNCTION(http_uncompress) * * Accpepts an optional in parameter specifying which feature to probe for. * If the parameter is 0 or omitted, the return value contains a bitmask of - * all supported featuers that depend on external libraries. + * all supported features that depend on external libraries. * * Available features to probe for are: - * - HTTP_SUPPORT: always set - * - HTTP_SUPPORT_REQUESTS: whether ext/http was linked against libcurl, - * and HTTP requests can be issued - * - HTTP_SUPPORT_SSLREQUESTS: whether libcurl was linked against openssl, - * and SSL requests can be issued - * - HTTP_SUPPORT_ENCODINGS: whether ext/http was linked against zlib, - * and compressed HTTP responses can be decoded - * - HTTP_SUPPORT_MHASHETAGS: whether ext/http was linked against libmhash, - * and ETags can be generated with the available mhash algorithms - * - HTTP_SUPPORT_MAGICMIME: whether ext/http was linked against libmagic, - * and the HttpResponse::guessContentType() method is usable + * * * Returns int, whether requested feature is supported, or a bitmask with * all supported features.