From 389ba5441bf52eee19fd9f67d1d290eae1182e6b Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Mon, 12 Dec 2005 13:28:39 +0000 Subject: [PATCH] - update package.xml --- KnownIssues.txt | 4 ---- http_message_api.c | 3 ++- package.xml | 30 ++++++++++++++++++++---------- package2.xml | 21 ++++++++++++++++++--- 4 files changed, 40 insertions(+), 18 deletions(-) diff --git a/KnownIssues.txt b/KnownIssues.txt index ce88391..1192ba3 100644 --- a/KnownIssues.txt +++ b/KnownIssues.txt @@ -13,10 +13,6 @@ Inflating compressed HttpRequest responses happens twice if libcurl was built with zlib support. Internals: - - the request bodies created in http_request_pool_attach() are not - destroyed in http_request_pool_detach() but on reset; - may be a memory problem in long running scripts which reuse one - request pool several times - there's a memleak with sizeof(zval) for each thrown exception, which ends up in HttpRequestPoolExcepiont::$exceptionStack, in HttpRequestPool::__construct(); it doesn't happen with wrapped diff --git a/http_message_api.c b/http_message_api.c index 608e4f0..01aa0e3 100644 --- a/http_message_api.c +++ b/http_message_api.c @@ -528,7 +528,7 @@ PHP_HTTP_API STATUS _http_message_send(http_message *message TSRMLS_DC) uri = http_absolute_uri(message->http.info.request.URI); } - if (request.meth = http_request_method_exists(1, 0, message->http.info.request.method)) { + if ((request.meth = http_request_method_exists(1, 0, message->http.info.request.method))) { http_request_body body = {HTTP_REQUEST_BODY_CSTRING, PHPSTR_VAL(message), PHPSTR_LEN(message)}; http_request_init_ex(&request, NULL, request.meth, uri); @@ -536,6 +536,7 @@ PHP_HTTP_API STATUS _http_message_send(http_message *message TSRMLS_DC) if (SUCCESS == (rs = http_request_prepare(&request, NULL))) { http_request_exec(&request); } + request.body = NULL; http_request_dtor(&request); } else { http_error_ex(HE_WARNING, HTTP_E_REQUEST_METHOD, diff --git a/package.xml b/package.xml index 1c1f47f..acfda11 100644 --- a/package.xml +++ b/package.xml @@ -26,20 +26,28 @@ HttpUtil, HttpMessage, HttpRequest, HttpRequestPool; HttpResponse (PHP-5.1) - 0.19.0 - 2005-11-26 + 0.20.0 + 2005-12-12 BSD, revised beta - + Added http_negotiate_content_type() + ! Request functionality requires libcurl >= 7.12.3 now -* Fixed bug in http_negotiate_*() when client sends spaces within accept headers ++ Added 'bodyonly' request option ++ Added IOCTL callback for cURL ++ Added ssl_engines array and cookies array to the request info array -- Removed support for etag hashing through libmhash -- Removed HTTP_ETAG_* and HttpResponse::ETAG_* constants -- Changed http.etag_mode INI setting to acccept a string specifying the - hash algorithm to use for generating etags. - CRC32, MD5 and SHA1 are available out of the box with MD5 being the default. - If pecl/hash is available, any algorithm this extension provides can be used. +- Renamed http_connectcode to connect_code in the request info array +- Rewrote internal request API +- Enable "original headers" previously stripped off by the message parser: + o X-Original-Transfer-Encoding (Transfer-Encoding) + o X-Original-Content-Encoding (Content-Encoding) + o X-Original-Content-Length (Content-Length) +- RequestExceptions thrown by HttpRequestPool::__construct() and send() are + now wrapped into the HttpRequestPoolException object's $exceptionStack property + +* Fixed bug which caused GZIP encoded archives to be decoded +* Fixed several memory leaks and inconspicuous access violations +* Fixed some logical errors in the uri builder @@ -182,6 +190,7 @@ HttpUtil, HttpMessage, HttpRequest, HttpRequestPool; HttpResponse (PHP-5.1) + @@ -207,6 +216,7 @@ HttpUtil, HttpMessage, HttpRequest, HttpRequestPool; HttpResponse (PHP-5.1) + diff --git a/package2.xml b/package2.xml index ab532d2..7faf968 100644 --- a/package2.xml +++ b/package2.xml @@ -42,11 +42,24 @@ HttpUtil, HttpMessage, HttpRequest, HttpRequestPool; HttpResponse (PHP-5.1) BSD, revised = 7.12.3 now + + Added 'bodyonly' request option + Added IOCTL callback for cURL ++ Added ssl_engines array and cookies array to the request info array + +- Renamed http_connectcode to connect_code in the request info array +- Rewrote internal request API +- Enable "original headers" previously stripped off by the message parser: + o X-Original-Transfer-Encoding (Transfer-Encoding) + o X-Original-Content-Encoding (Content-Encoding) + o X-Original-Content-Length (Content-Length) +- RequestExceptions thrown by HttpRequestPool::__construct() and send() are + now wrapped into the HttpRequestPoolException object's $exceptionStack property * Fixed bug which caused GZIP encoded archives to be decoded * Fixed several memory leaks and inconspicuous access violations +* Fixed some logical errors in the uri builder ]]> @@ -82,6 +95,7 @@ HttpUtil, HttpMessage, HttpRequest, HttpRequestPool; HttpResponse (PHP-5.1) + @@ -104,6 +118,7 @@ HttpUtil, HttpMessage, HttpRequest, HttpRequestPool; HttpResponse (PHP-5.1) + @@ -230,9 +245,9 @@ HttpUtil, HttpMessage, HttpRequest, HttpRequestPool; HttpResponse (PHP-5.1) - - session - + session + hash + zlib http -- 2.30.2