From 0783cd4e630749e23e0cff3ec2453036412bba67 Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Sun, 28 May 2006 15:48:00 +0000 Subject: [PATCH] - release RC5 --- KnownIssues.txt | 20 +++----------------- docs/functions.html | 8 ++++---- package.xml | 31 ++++++++++++++----------------- package2.xml | 5 +++-- php_http.h | 2 +- 5 files changed, 25 insertions(+), 41 deletions(-) diff --git a/KnownIssues.txt b/KnownIssues.txt index d54a683..ea870ec 100644 --- a/KnownIssues.txt +++ b/KnownIssues.txt @@ -11,26 +11,12 @@ Windows: requests, try another (newer) libeay32.dll/ssleay32.dll pair. Deflate/Inflate: - http_inflate() resp. the HttpInflateStream should be able to inflate -any compressed data (gzip, deflate AKA zlib and raw deflate). However, -inflating raw deflated data causes a re-initialization of the inflate -stream where the corresponding window bits are modified to tell libz -to not check for zlib header bytes. This is not preventable AFAICS. - http_deflate() resp. the HttpDeflateStream should be able to -generate any compressed data (gzip, deflate AKA zlib and raw deflate); -just use the flag for the data format you want to generate: -HTTP_DEFLATE_TYPE_GZIP, HTTP_DEFLATE_TYPE_ZLIB or HTTP_DEFLATE_TYPE_RAW. + Inflating raw deflated data causes a re-initialization of the inflate +stream where the corresponding window bits are modified to tell libz to +not check for zlib header bytes. This is not preventable AFAICS. Using an encoding stream filter on a stream you read from, will not work as expected in a PHP version lower than 5.1.3. Internals: - - 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 - exceptions in HttpRequestPool::send(). - - our http_urlencode_hash() only handles arrays and does not differentiate between prefixes for numeric or string keys. - - - check all places where hash table entries are created if - the keys are properly NUL terminated (prior 1.0!) diff --git a/docs/functions.html b/docs/functions.html index b27ed07..4c6aeed 100644 --- a/docs/functions.html +++ b/docs/functions.html @@ -201,7 +201,7 @@ the Last-Modified header is updated and the actual body will be sent.

http.cache_log is set and the cache attempt was successful.

bool http_cache_etag([string etag])

Attempts to cache the sent entity by its ETag, either supplied or generated
-by the hash algorithm specified by the INI setting "http.etag_mode".

+by the hash algorithm specified by the INI setting "http.etag.mode".

If the clients "If-None-Match" header matches the supplied/calculated
ETag, the body is considered cached on the clients side and
a "304 Not Modified" status code is issued.

@@ -210,7 +210,7 @@ a "304 Not Modified" status code is issued.

"http.cache_log" is set and the cache attempt was successful.

string ob_etaghandler(string data, int mode)

For use with ob_start(). Output buffer handler generating an ETag with
-the hash algorithm specified with the INI setting "http.etag_mode".

+the hash algorithm specified with the INI setting "http.etag.mode".

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
@@ -284,7 +284,7 @@ several consecutive HTTP messages.

<?php
print_r
(http_parse_cookie("foo=bar; bar=baz; path=/; domain=example.com; comment=; secure"0, array("comment")));

stdClass Object
(
    [
cookies] => Array
        (
            [
foo] => bar
            
[bar] => baz
        
)

    [
extras] => Array
        (
            [
comment] =>
        )

    [
flags] => 16
    
[expires] => 0
    
[path] => /
    [
domain] => example.com
)
?>

-

object http_parse_params(string param)

+

object http_parse_params(string param[, int flags = HTTP_PARAMS_DEFAULT])

Parse parameter list.

array http_get_request_headers(void)

Get a list of incoming HTTP headers.

@@ -1434,7 +1434,7 @@ http.cache_log is set.

-

Generated at: Thu, 25 May 2006 10:46:03 +0200

+

Generated at: Sun, 28 May 2006 17:34:52 +0200

diff --git a/package.xml b/package.xml index 104d2c6..775bedc 100644 --- a/package.xml +++ b/package.xml @@ -12,14 +12,7 @@ language and charset, as well as a convenient way to send any arbitrary data with caching and resuming capabilities. 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, -HttpDeflateStream, HttpInflateStream, HttpQueryString - -PHP-5.1 classes: -HttpResponse +support. Parallel requests are available for PHP 5 and greater. @@ -30,16 +23,19 @@ HttpResponse - 1.0.0RC4 - 2006-05-19 + 1.0.0RC5 + 2006-05-28 BSD, revised beta - + Added http_parse_params() function -+ Added HTTP_URL_STRIP_ALL constant -* Fixed possible crash in progress/onfinish request callbacks -* Fixed http_redirect() and http_build_url() without arguments -* Fixed behaviour of http_build_url() when second parameter is NULL -* Enabled recursive query string merging in http_build_url() with HTTP_URL_JOIN_QUERY + + Added HttpRequest::enableCookies() and HttpRequest::resetCookies([bool session_only=FALSE]) ++ Added optional flags argument to http_parse_params() ++ Added HTTP_PARAMS_ALLOW_COMMA, HTTP_PARAMS_ALLOW_FAILURE, HTTP_PARAMS_RAISE_ERROR constants +* Fixed http_build_url("./path") if REQUEST_URI is empty +* Fixed http_parse_params("foo;bar") returning "foo" and "ar" +* Fixed return value of http_parse_params() Object{"params"=>Array("value", Array("name"=>"value"), ...)} +* Fixed HttpMessage::setRequestMethod() errenously issuing a warning about an unknown request method +* Fixed bugs introduced by using the new REQUEST_TIME server variable +! NOTE: Many INI settings have been renamed to comply with the internal structure @@ -130,11 +126,11 @@ HttpResponse + - @@ -148,6 +144,7 @@ HttpResponse + diff --git a/package2.xml b/package2.xml index 8c8e030..ad3f4af 100644 --- a/package2.xml +++ b/package2.xml @@ -20,7 +20,7 @@ language and charset, as well as a convenient way to send any arbitrary data with caching and resuming capabilities. It provides powerful request functionality, if built with CURL -support. Parallel requests are available for PHP-5 and greater. +support. Parallel requests are available for PHP 5 and greater. ]]> Michael Wallner @@ -46,6 +46,8 @@ support. Parallel requests are available for PHP-5 and greater. * Fixed http_parse_params("foo;bar") returning "foo" and "ar" * Fixed return value of http_parse_params() Object{"params"=>Array("value", Array("name"=>"value"), ...)} * Fixed HttpMessage::setRequestMethod() errenously issuing a warning about an unknown request method +* Fixed bugs introduced by using the new REQUEST_TIME server variable +! NOTE: Many INI settings have been renamed to comply with the internal structure ]]> @@ -203,7 +205,6 @@ support. Parallel requests are available for PHP-5 and greater. - diff --git a/php_http.h b/php_http.h index 6c378a2..09010f8 100644 --- a/php_http.h +++ b/php_http.h @@ -15,7 +15,7 @@ #ifndef PHP_EXT_HTTP_H #define PHP_EXT_HTTP_H -#define PHP_EXT_HTTP_VERSION "1.0.0RC5-dev" +#define PHP_EXT_HTTP_VERSION "1.0.0RC5" #ifdef HAVE_CONFIG_H # include "config.h" -- 2.30.2