X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=http_functions.c;h=4e88f42a202729f8d949c848c171b63db7186275;hp=4b611e037d964ee7122aaa970de514073b5418c9;hb=a858e7cca25147d26b2f81298b89797420b31793;hpb=781c90c0447166dd52ef881ae15751fa466c32fb diff --git a/http_functions.c b/http_functions.c index 4b611e0..4e88f42 100644 --- a/http_functions.c +++ b/http_functions.c @@ -416,7 +416,7 @@ PHP_FUNCTION(ob_etaghandler) * Use with http_send() API. * * Example: - * + *
  * 
- * 
+ * 
*/ PHP_FUNCTION(http_throttle) { @@ -868,6 +868,9 @@ PHP_FUNCTION(http_post_fields) /* {{{ proto string http_put_file(string url, string file[, array options[, array &info]]) * + * Performs an HTTP PUT request, uploading file. + * Returns the HTTP response as string. + * See http_get() for a full list of available options. */ PHP_FUNCTION(http_put_file) { @@ -912,6 +915,9 @@ PHP_FUNCTION(http_put_file) /* {{{ proto string http_put_stream(string url, resource stream[, array options[, array &info]]) * + * Performs an HTTP PUT request, uploading stream. + * Returns the HTTP response as string. + * See http_get() for a full list of available options. */ PHP_FUNCTION(http_put_stream) { @@ -950,12 +956,9 @@ PHP_FUNCTION(http_put_stream) } /* }}} */ -/* {{{ proto bool http_request() - */ -/* }}} */ - /* {{{ proto long http_request_method_register(string method) * + * Register a custom request method. */ PHP_FUNCTION(http_request_method_register) { @@ -976,12 +979,11 @@ PHP_FUNCTION(http_request_method_register) /* {{{ proto bool http_request_method_unregister(mixed method) * + * Unregister a previously registered custom request method. */ PHP_FUNCTION(http_request_method_unregister) { zval *method; - zend_bool numeric; - unsigned long existing; if (SUCCESS != zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z/", &method)) { RETURN_FALSE; @@ -1013,6 +1015,7 @@ PHP_FUNCTION(http_request_method_unregister) /* {{{ proto long http_request_method_exists(mixed method) * + * Check if a request method is registered (or available by default). */ PHP_FUNCTION(http_request_method_exists) { @@ -1044,6 +1047,7 @@ PHP_FUNCTION(http_request_method_exists) /* {{{ proto string http_request_method_name(long method) * + * Get the literal string representation of a standard or registered request method. */ PHP_FUNCTION(http_request_method_name) {