X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=http_functions.c;h=ad2e3d2419616385a7c344c9189ab0b69e0600e9;hb=28676404f30a0814a8e027d63b3cec4959475c46;hp=2675fbcae41ad9a850ba40de481c958380d41f83;hpb=0dd8ced9885c983b6814dbea762fc29bc2a0ffd0;p=m6w6%2Fext-http diff --git a/http_functions.c b/http_functions.c index 2675fbc..ad2e3d2 100644 --- a/http_functions.c +++ b/http_functions.c @@ -1668,12 +1668,6 @@ PHP_FUNCTION(http_request) } /* }}} */ -/* {{{ proto string http_request_body_encode(array fields, array files) - * - * Generate x-www-form-urlencoded resp. form-data encoded request body. - * - * Returns encoded string on success, or FALSE on failure. - */ static char *file_get_contents(char *file, size_t *len TSRMLS_DC) { php_stream *s = NULL; @@ -1694,6 +1688,13 @@ struct FormData { size_t length; }; CURLcode Curl_getFormData(struct FormData **, struct curl_httppost *post, curl_off_t *size); + +/* {{{ proto string http_request_body_encode(array fields, array files) + * + * Generate x-www-form-urlencoded resp. form-data encoded request body. + * + * Returns encoded string on success, or FALSE on failure. + */ PHP_FUNCTION(http_request_body_encode) { zval *fields = NULL, *files = NULL;