From: Michael Wallner Date: Tue, 27 Dec 2005 11:38:05 +0000 (+0000) Subject: - update package X-Git-Tag: RELEASE_0_21_0~23 X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=commitdiff_plain;h=6b5563e110ed2ecd7795566077bde93b42ab5454 - update package --- diff --git a/http.c b/http.c index 14b25bc..c9e6931 100644 --- a/http.c +++ b/http.c @@ -216,9 +216,9 @@ PHP_INI_BEGIN() #endif HTTP_PHP_INI_ENTRY("http.force_exit", "1", PHP_INI_ALL, OnUpdateBool, force_exit) #ifdef HTTP_HAVE_ZLIB - HTTP_PHP_INI_ENTRY("http.ob_inflate_auto", "0", PHP_INI_ALL, OnUpdateBool, send.inflate.start_auto) + HTTP_PHP_INI_ENTRY("http.ob_inflate_auto", "0", PHP_INI_PERDIR, OnUpdateBool, send.inflate.start_auto) HTTP_PHP_INI_ENTRY("http.ob_inflate_flags", "0", PHP_INI_ALL, OnUpdateLong, send.inflate.start_flags) - HTTP_PHP_INI_ENTRY("http.ob_deflate_auto", "0", PHP_INI_ALL, OnUpdateBool, send.deflate.start_auto) + HTTP_PHP_INI_ENTRY("http.ob_deflate_auto", "0", PHP_INI_PERDIR, OnUpdateBool, send.deflate.start_auto) HTTP_PHP_INI_ENTRY("http.ob_deflate_flags", "0", PHP_INI_ALL, OnUpdateLong, send.deflate.start_flags) #endif PHP_INI_END() @@ -338,6 +338,10 @@ PHP_MINFO_FUNCTION(http) "HttpRequest, " "HttpRequestPool, " # endif +# ifdef HTTP_HAVE_ZLIB + "HttpDeflateStream, " + "HttpInflateStream, " +# endif # ifndef WONKY "HttpResponse" # endif diff --git a/package2.xml b/package2.xml index 73838c6..26b487c 100644 --- a/package2.xml +++ b/package2.xml @@ -23,7 +23,11 @@ It provides powerful request functionality, if built with CURL support. Parallel requests are available for PHP-5 and greater. PHP-5 classes: -HttpUtil, HttpMessage, HttpRequest, HttpRequestPool; HttpResponse (PHP-5.1) +HttpUtil, HttpMessage, HttpRequest, HttpRequestPool, +HttpDeflateStream, HttpInflateStream + +PHP-5.1 classes: +HttpResponse ]]> Michael Wallner @@ -33,8 +37,8 @@ HttpUtil, HttpMessage, HttpRequest, HttpRequestPool; HttpResponse (PHP-5.1) 2005-00-00 - 0.20.0 - 0.20.0 + 0.21.0 + 0.21.0 beta @@ -42,26 +46,18 @@ HttpUtil, HttpMessage, HttpRequest, HttpRequestPool; HttpResponse (PHP-5.1) BSD, revised = 7.12.3 now +! Encodings functionality requires libz version 1.2.0.4 or greater + ++ Added HttpDeflateStream and HttpInflateStream classes ++ Added ob_deflatehandler and ob_inflatehandler ++ Added HttpRequest::getRawRequestMessage and ::getRawResponseMessage ++ Added 'resetcookies' request option (libcurl > 7.15) -+ Added 'bodyonly' request option -+ Added IOCTL callback for cURL -+ Added ssl_engines array and cookies array to the request info array -+ Added http_parse_cookie() to parse Set-Cookie headers +- Changed HttpRequest properties to be private -- Renamed http_connectcode to connect_code in the request info array -- 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 -- Removed http_compress() and http_uncompress() (http_deflate/inflate ambiguity) +* Fixed a lot of memory corruptions within HttpRequest -* Fixed bug which caused GZIP encoded archives to be decoded -* Fixed bug with DEFLATE encoded response messages -* Fixed several memory leaks and inconspicuous access violations -* Fixed some logical errors in the uri builder +Special thanks for this release go to Ilia Alshanetsky. ]]> @@ -103,6 +99,8 @@ HttpUtil, HttpMessage, HttpRequest, HttpRequestPool; HttpResponse (PHP-5.1) + + @@ -126,6 +124,8 @@ HttpUtil, HttpMessage, HttpRequest, HttpRequestPool; HttpResponse (PHP-5.1) + + @@ -137,13 +137,13 @@ HttpUtil, HttpMessage, HttpRequest, HttpRequestPool; HttpResponse (PHP-5.1) - - - + + + @@ -151,6 +151,7 @@ HttpUtil, HttpMessage, HttpRequest, HttpRequestPool; HttpResponse (PHP-5.1) + @@ -176,10 +177,12 @@ HttpUtil, HttpMessage, HttpRequest, HttpRequestPool; HttpResponse (PHP-5.1) + + @@ -187,6 +190,8 @@ HttpUtil, HttpMessage, HttpRequest, HttpRequestPool; HttpResponse (PHP-5.1) + + @@ -249,7 +254,6 @@ HttpUtil, HttpMessage, HttpRequest, HttpRequestPool; HttpResponse (PHP-5.1) session hash - zlib http diff --git a/tests/ob_deflatehandler_001.phpt b/tests/ob_deflatehandler_001.phpt new file mode 100644 index 0000000..ba39581 --- /dev/null +++ b/tests/ob_deflatehandler_001.phpt @@ -0,0 +1,22 @@ +--TEST-- +ob_deflatehandler +--SKIPIF-- + +--ENV-- +HTTP_ACCEPT_ENCODING=gzip +--FILE-- + +--EXPECTF-- +%s +Content-Encoding: gzip +Vary: Accept-Encoding +%s + diff --git a/tests/ob_inflatehandler_001.phpt b/tests/ob_inflatehandler_001.phpt new file mode 100644 index 0000000..2e494de --- /dev/null +++ b/tests/ob_inflatehandler_001.phpt @@ -0,0 +1,16 @@ +--TEST-- +ob_inflatehandler +--SKIPIF-- + +--FILE-- + +--EXPECTF-- +%sTEST +