diff options
-rw-r--r-- | .gitignore | 2 | ||||
-rw-r--r-- | 7.patch | 65 | ||||
-rw-r--r-- | PHPINFO | 2 | ||||
-rw-r--r-- | REFLECTION | 398 | ||||
-rw-r--r-- | php-pecl-http-message.spec | 63 |
5 files changed, 329 insertions, 201 deletions
@@ -1,5 +1,7 @@ +clog package-*.xml *.tgz +*.tar.bz2 *.tar.gz *.tar.xz *.tar.xz.asc @@ -0,0 +1,65 @@ +From f0cdf565fd129136ef4ee43c9e2aa9b12bb3eb8a Mon Sep 17 00:00:00 2001 +From: Remi Collet <remi@remirepo.net> +Date: Mon, 13 Dec 2021 08:05:14 +0100 +Subject: [PATCH] fix #6 compatibility with psr 1.2.0 + +--- + tests/Factory/createUploadedFile_err01.phpt | 4 ++-- + tests/Message/body_err01.phpt | 2 +- + tests/Request/uri_err01.phpt | 2 +- + uri.c | 5 ++++- + 4 files changed, 8 insertions(+), 5 deletions(-) + +diff --git a/tests/Factory/createUploadedFile_err01.phpt b/tests/Factory/createUploadedFile_err01.phpt +index 0bc72b9..13186e1 100644 +--- a/tests/Factory/createUploadedFile_err01.phpt ++++ b/tests/Factory/createUploadedFile_err01.phpt +@@ -43,8 +43,8 @@ try { + + ?> + --EXPECTF-- +-%sttpMessage\Factory::createUploadedFile()%s Psr\Http\Message\StreamInterface, string given +-%sttpMessage\Factory::createUploadedFile()%s Psr\Http\Message\StreamInterface,%sstdClass given ++%sttpMessage\Factory::createUploadedFile()%s\Http\Message\StreamInterface, string given ++%sttpMessage\Factory::createUploadedFile()%s\Http\Message\StreamInterface,%sstdClass given + %sttpMessage\Factory::createUploadedFile()%s, array given + %sttpMessage\Factory::createUploadedFile()%sint, array given + %sttpMessage\Factory::createUploadedFile()%s, array given +diff --git a/tests/Message/body_err01.phpt b/tests/Message/body_err01.phpt +index 720ff6a..5925676 100644 +--- a/tests/Message/body_err01.phpt ++++ b/tests/Message/body_err01.phpt +@@ -19,5 +19,5 @@ try { + + ?> + --EXPECTF-- +-%sttpMessage\Message::withBody()%s Psr\Http\Message\StreamInterface, resource given ++%sttpMessage\Message::withBody()%s\Http\Message\StreamInterface, resource given + HttpMessage\Message::withBody() expects exactly 1 %s, 0 given +diff --git a/tests/Request/uri_err01.phpt b/tests/Request/uri_err01.phpt +index 8803d73..6903e8e 100644 +--- a/tests/Request/uri_err01.phpt ++++ b/tests/Request/uri_err01.phpt +@@ -19,4 +19,4 @@ try { + ?> + --EXPECTF-- + HttpMessage\Request::withUri() expects exactly 1 %s, 0 given +-%sttpMessage\Request::withUri()%sPsr\Http\Message\UriInterface, string given ++%sttpMessage\Request::withUri()%s\Http\Message\UriInterface, string given +diff --git a/uri.c b/uri.c +index 1f5b4c6..77782cf 100644 +--- a/uri.c ++++ b/uri.c +@@ -113,8 +113,11 @@ PHP_METHOD(Uri, __construct) + + + /* __toString */ +- ++#if PHP_VERSION_ID >= 80000 && PHP_PSR_VERSION_ID >= 10200 ++ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_HttpMessageUri_toString, 0, 0, IS_STRING, 0) ++#else + ZEND_BEGIN_ARG_INFO_EX(arginfo_HttpMessageUri_toString, 0, 0, 0) ++#endif + ZEND_END_ARG_INFO() + + PHP_METHOD(Uri, __toString) @@ -1,4 +1,4 @@ http_message -Version => 0.2.0 +Version => 1.0.0 @@ -1,11 +1,11 @@ -Extension [ <persistent> extension #191 http_message version 0.2.0 ] { +Extension [ <persistent> extension #111 http_message version 1.0.0 ] { - Dependencies { Dependency [ psr (Required) ] } - - Classes [8] { - Class [ <internal:http_message> abstract class HttpMessage\Message implements Psr\Http\Message\MessageInterface ] { + - Classes [9] { + Class [ <internal:http_message> abstract class HttpMessage\Message implements PsrExt\Http\Message\MessageInterface ] { - Constants [0] { } @@ -17,9 +17,9 @@ Extension [ <persistent> extension #191 http_message version 0.2.0 ] { } - Properties [3] { - Property [ <default> private $protocolVersion ] - Property [ <default> private $headers ] - Property [ <default> private $body ] + Property [ private $protocolVersion = '1.1' ] + Property [ private $headers = NULL ] + Property [ private $body = NULL ] } - Methods [12] { @@ -29,47 +29,47 @@ Extension [ <persistent> extension #191 http_message version 0.2.0 ] { } } - Method [ <internal:http_message, prototype Psr\Http\Message\MessageInterface> public method getProtocolVersion ] { + Method [ <internal:http_message, prototype PsrExt\Http\Message\MessageInterface> public method getProtocolVersion ] { - Parameters [0] { } } - Method [ <internal:http_message, prototype Psr\Http\Message\MessageInterface> public method withProtocolVersion ] { + Method [ <internal:http_message, prototype PsrExt\Http\Message\MessageInterface> public method withProtocolVersion ] { - Parameters [1] { Parameter #0 [ <required> $version ] } } - Method [ <internal:http_message, prototype Psr\Http\Message\MessageInterface> public method getHeaders ] { + Method [ <internal:http_message, prototype PsrExt\Http\Message\MessageInterface> public method getHeaders ] { - Parameters [0] { } } - Method [ <internal:http_message, prototype Psr\Http\Message\MessageInterface> public method hasHeader ] { + Method [ <internal:http_message, prototype PsrExt\Http\Message\MessageInterface> public method hasHeader ] { - Parameters [1] { Parameter #0 [ <required> $name ] } } - Method [ <internal:http_message, prototype Psr\Http\Message\MessageInterface> public method getHeader ] { + Method [ <internal:http_message, prototype PsrExt\Http\Message\MessageInterface> public method getHeader ] { - Parameters [1] { Parameter #0 [ <required> $name ] } } - Method [ <internal:http_message, prototype Psr\Http\Message\MessageInterface> public method getHeaderLine ] { + Method [ <internal:http_message, prototype PsrExt\Http\Message\MessageInterface> public method getHeaderLine ] { - Parameters [1] { Parameter #0 [ <required> $name ] } } - Method [ <internal:http_message, prototype Psr\Http\Message\MessageInterface> public method withHeader ] { + Method [ <internal:http_message, prototype PsrExt\Http\Message\MessageInterface> public method withHeader ] { - Parameters [2] { Parameter #0 [ <required> $name ] @@ -77,7 +77,7 @@ Extension [ <persistent> extension #191 http_message version 0.2.0 ] { } } - Method [ <internal:http_message, prototype Psr\Http\Message\MessageInterface> public method withAddedHeader ] { + Method [ <internal:http_message, prototype PsrExt\Http\Message\MessageInterface> public method withAddedHeader ] { - Parameters [2] { Parameter #0 [ <required> $name ] @@ -85,20 +85,20 @@ Extension [ <persistent> extension #191 http_message version 0.2.0 ] { } } - Method [ <internal:http_message, prototype Psr\Http\Message\MessageInterface> public method withoutHeader ] { + Method [ <internal:http_message, prototype PsrExt\Http\Message\MessageInterface> public method withoutHeader ] { - Parameters [1] { Parameter #0 [ <required> $name ] } } - Method [ <internal:http_message, prototype Psr\Http\Message\MessageInterface> public method getBody ] { + Method [ <internal:http_message, prototype PsrExt\Http\Message\MessageInterface> public method getBody ] { - Parameters [0] { } } - Method [ <internal:http_message, prototype Psr\Http\Message\MessageInterface> public method withBody ] { + Method [ <internal:http_message, prototype PsrExt\Http\Message\MessageInterface> public method withBody ] { - Parameters [1] { Parameter #0 [ <required> Psr\Http\Message\StreamInterface $body ] @@ -107,7 +107,7 @@ Extension [ <persistent> extension #191 http_message version 0.2.0 ] { } } - Class [ <internal:http_message> class HttpMessage\Request extends HttpMessage\Message implements Psr\Http\Message\MessageInterface, Psr\Http\Message\RequestInterface ] { + Class [ <internal:http_message> class HttpMessage\Request extends HttpMessage\Message implements PsrExt\Http\Message\MessageInterface, PsrExt\Http\Message\RequestInterface ] { - Constants [0] { } @@ -119,9 +119,9 @@ Extension [ <persistent> extension #191 http_message version 0.2.0 ] { } - Properties [3] { - Property [ <default> private $requestTarget ] - Property [ <default> private $method ] - Property [ <default> private $uri ] + Property [ private $requestTarget = NULL ] + Property [ private $method = '' ] + Property [ private $uri = NULL ] } - Methods [18] { @@ -131,87 +131,87 @@ Extension [ <persistent> extension #191 http_message version 0.2.0 ] { } } - Method [ <internal:http_message, prototype Psr\Http\Message\RequestInterface> public method getRequestTarget ] { + Method [ <internal:http_message, prototype PsrExt\Http\Message\RequestInterface> public method getRequestTarget ] { - Parameters [0] { } } - Method [ <internal:http_message, prototype Psr\Http\Message\RequestInterface> public method withRequestTarget ] { + Method [ <internal:http_message, prototype PsrExt\Http\Message\RequestInterface> public method withRequestTarget ] { - Parameters [1] { Parameter #0 [ <required> $requestTarget ] } } - Method [ <internal:http_message, prototype Psr\Http\Message\RequestInterface> public method getMethod ] { + Method [ <internal:http_message, prototype PsrExt\Http\Message\RequestInterface> public method getMethod ] { - Parameters [0] { } } - Method [ <internal:http_message, prototype Psr\Http\Message\RequestInterface> public method withMethod ] { + Method [ <internal:http_message, prototype PsrExt\Http\Message\RequestInterface> public method withMethod ] { - Parameters [1] { Parameter #0 [ <required> $method ] } } - Method [ <internal:http_message, prototype Psr\Http\Message\RequestInterface> public method getUri ] { + Method [ <internal:http_message, prototype PsrExt\Http\Message\RequestInterface> public method getUri ] { - Parameters [0] { } } - Method [ <internal:http_message, prototype Psr\Http\Message\RequestInterface> public method withUri ] { + Method [ <internal:http_message, prototype PsrExt\Http\Message\RequestInterface> public method withUri ] { - Parameters [2] { Parameter #0 [ <required> Psr\Http\Message\UriInterface $uri ] - Parameter #1 [ <optional> $preserveHost ] + Parameter #1 [ <optional> $preserveHost = <default> ] } } - Method [ <internal:http_message, inherits HttpMessage\Message, prototype Psr\Http\Message\MessageInterface> public method getProtocolVersion ] { + Method [ <internal:http_message, inherits HttpMessage\Message, prototype PsrExt\Http\Message\MessageInterface> public method getProtocolVersion ] { - Parameters [0] { } } - Method [ <internal:http_message, inherits HttpMessage\Message, prototype Psr\Http\Message\MessageInterface> public method withProtocolVersion ] { + Method [ <internal:http_message, inherits HttpMessage\Message, prototype PsrExt\Http\Message\MessageInterface> public method withProtocolVersion ] { - Parameters [1] { Parameter #0 [ <required> $version ] } } - Method [ <internal:http_message, inherits HttpMessage\Message, prototype Psr\Http\Message\MessageInterface> public method getHeaders ] { + Method [ <internal:http_message, inherits HttpMessage\Message, prototype PsrExt\Http\Message\MessageInterface> public method getHeaders ] { - Parameters [0] { } } - Method [ <internal:http_message, inherits HttpMessage\Message, prototype Psr\Http\Message\MessageInterface> public method hasHeader ] { + Method [ <internal:http_message, inherits HttpMessage\Message, prototype PsrExt\Http\Message\MessageInterface> public method hasHeader ] { - Parameters [1] { Parameter #0 [ <required> $name ] } } - Method [ <internal:http_message, inherits HttpMessage\Message, prototype Psr\Http\Message\MessageInterface> public method getHeader ] { + Method [ <internal:http_message, inherits HttpMessage\Message, prototype PsrExt\Http\Message\MessageInterface> public method getHeader ] { - Parameters [1] { Parameter #0 [ <required> $name ] } } - Method [ <internal:http_message, inherits HttpMessage\Message, prototype Psr\Http\Message\MessageInterface> public method getHeaderLine ] { + Method [ <internal:http_message, inherits HttpMessage\Message, prototype PsrExt\Http\Message\MessageInterface> public method getHeaderLine ] { - Parameters [1] { Parameter #0 [ <required> $name ] } } - Method [ <internal:http_message, inherits HttpMessage\Message, prototype Psr\Http\Message\MessageInterface> public method withHeader ] { + Method [ <internal:http_message, inherits HttpMessage\Message, prototype PsrExt\Http\Message\MessageInterface> public method withHeader ] { - Parameters [2] { Parameter #0 [ <required> $name ] @@ -219,7 +219,7 @@ Extension [ <persistent> extension #191 http_message version 0.2.0 ] { } } - Method [ <internal:http_message, inherits HttpMessage\Message, prototype Psr\Http\Message\MessageInterface> public method withAddedHeader ] { + Method [ <internal:http_message, inherits HttpMessage\Message, prototype PsrExt\Http\Message\MessageInterface> public method withAddedHeader ] { - Parameters [2] { Parameter #0 [ <required> $name ] @@ -227,20 +227,20 @@ Extension [ <persistent> extension #191 http_message version 0.2.0 ] { } } - Method [ <internal:http_message, inherits HttpMessage\Message, prototype Psr\Http\Message\MessageInterface> public method withoutHeader ] { + Method [ <internal:http_message, inherits HttpMessage\Message, prototype PsrExt\Http\Message\MessageInterface> public method withoutHeader ] { - Parameters [1] { Parameter #0 [ <required> $name ] } } - Method [ <internal:http_message, inherits HttpMessage\Message, prototype Psr\Http\Message\MessageInterface> public method getBody ] { + Method [ <internal:http_message, inherits HttpMessage\Message, prototype PsrExt\Http\Message\MessageInterface> public method getBody ] { - Parameters [0] { } } - Method [ <internal:http_message, inherits HttpMessage\Message, prototype Psr\Http\Message\MessageInterface> public method withBody ] { + Method [ <internal:http_message, inherits HttpMessage\Message, prototype PsrExt\Http\Message\MessageInterface> public method withBody ] { - Parameters [1] { Parameter #0 [ <required> Psr\Http\Message\StreamInterface $body ] @@ -249,7 +249,7 @@ Extension [ <persistent> extension #191 http_message version 0.2.0 ] { } } - Class [ <internal:http_message> class HttpMessage\ServerRequest extends HttpMessage\Request implements Psr\Http\Message\RequestInterface, Psr\Http\Message\MessageInterface, Psr\Http\Message\ServerRequestInterface ] { + Class [ <internal:http_message> class HttpMessage\ServerRequest extends HttpMessage\Request implements PsrExt\Http\Message\RequestInterface, PsrExt\Http\Message\MessageInterface, PsrExt\Http\Message\ServerRequestInterface ] { - Constants [0] { } @@ -261,99 +261,99 @@ Extension [ <persistent> extension #191 http_message version 0.2.0 ] { } - Properties [6] { - Property [ <default> private $serverParams ] - Property [ <default> private $cookieParams ] - Property [ <default> private $queryParams ] - Property [ <default> private $uploadedFiles ] - Property [ <default> private $parsedBody ] - Property [ <default> private $attributes ] + Property [ private $serverParams = NULL ] + Property [ private $cookieParams = NULL ] + Property [ private $queryParams = NULL ] + Property [ private $uploadedFiles = NULL ] + Property [ private $parsedBody = NULL ] + Property [ private $attributes = NULL ] } - Methods [31] { Method [ <internal:http_message, overwrites HttpMessage\Request, ctor> public method __construct ] { - Parameters [5] { - Parameter #0 [ <optional> array $serverParams ] - Parameter #1 [ <optional> array $cookieParams ] - Parameter #2 [ <optional> array $queryParams ] - Parameter #3 [ <optional> array $postParams ] - Parameter #4 [ <optional> array $files ] + Parameter #0 [ <optional> array $serverParams = <default> ] + Parameter #1 [ <optional> array $cookieParams = <default> ] + Parameter #2 [ <optional> array $queryParams = <default> ] + Parameter #3 [ <optional> array $postParams = <default> ] + Parameter #4 [ <optional> array $files = <default> ] } } - Method [ <internal:http_message, prototype Psr\Http\Message\ServerRequestInterface> public method getServerParams ] { + Method [ <internal:http_message, prototype PsrExt\Http\Message\ServerRequestInterface> public method getServerParams ] { - Parameters [0] { } } - Method [ <internal:http_message, prototype Psr\Http\Message\ServerRequestInterface> public method getCookieParams ] { + Method [ <internal:http_message, prototype PsrExt\Http\Message\ServerRequestInterface> public method getCookieParams ] { - Parameters [0] { } } - Method [ <internal:http_message, prototype Psr\Http\Message\ServerRequestInterface> public method withCookieParams ] { + Method [ <internal:http_message, prototype PsrExt\Http\Message\ServerRequestInterface> public method withCookieParams ] { - Parameters [1] { Parameter #0 [ <required> array $cookies ] } } - Method [ <internal:http_message, prototype Psr\Http\Message\ServerRequestInterface> public method getQueryParams ] { + Method [ <internal:http_message, prototype PsrExt\Http\Message\ServerRequestInterface> public method getQueryParams ] { - Parameters [0] { } } - Method [ <internal:http_message, prototype Psr\Http\Message\ServerRequestInterface> public method withQueryParams ] { + Method [ <internal:http_message, prototype PsrExt\Http\Message\ServerRequestInterface> public method withQueryParams ] { - Parameters [1] { Parameter #0 [ <required> array $query ] } } - Method [ <internal:http_message, prototype Psr\Http\Message\ServerRequestInterface> public method getUploadedFiles ] { + Method [ <internal:http_message, prototype PsrExt\Http\Message\ServerRequestInterface> public method getUploadedFiles ] { - Parameters [0] { } } - Method [ <internal:http_message, prototype Psr\Http\Message\ServerRequestInterface> public method withUploadedFiles ] { + Method [ <internal:http_message, prototype PsrExt\Http\Message\ServerRequestInterface> public method withUploadedFiles ] { - Parameters [1] { Parameter #0 [ <required> array $uploadedFiles ] } } - Method [ <internal:http_message, prototype Psr\Http\Message\ServerRequestInterface> public method getParsedBody ] { + Method [ <internal:http_message, prototype PsrExt\Http\Message\ServerRequestInterface> public method getParsedBody ] { - Parameters [0] { } } - Method [ <internal:http_message, prototype Psr\Http\Message\ServerRequestInterface> public method withParsedBody ] { + Method [ <internal:http_message, prototype PsrExt\Http\Message\ServerRequestInterface> public method withParsedBody ] { - Parameters [1] { Parameter #0 [ <required> $parsedBody ] } } - Method [ <internal:http_message, prototype Psr\Http\Message\ServerRequestInterface> public method getAttributes ] { + Method [ <internal:http_message, prototype PsrExt\Http\Message\ServerRequestInterface> public method getAttributes ] { - Parameters [0] { } } - Method [ <internal:http_message, prototype Psr\Http\Message\ServerRequestInterface> public method getAttribute ] { + Method [ <internal:http_message, prototype PsrExt\Http\Message\ServerRequestInterface> public method getAttribute ] { - Parameters [2] { Parameter #0 [ <required> $name ] - Parameter #1 [ <optional> $default ] + Parameter #1 [ <optional> $default = <default> ] } } - Method [ <internal:http_message, prototype Psr\Http\Message\ServerRequestInterface> public method withAttribute ] { + Method [ <internal:http_message, prototype PsrExt\Http\Message\ServerRequestInterface> public method withAttribute ] { - Parameters [2] { Parameter #0 [ <required> $name ] @@ -361,94 +361,94 @@ Extension [ <persistent> extension #191 http_message version 0.2.0 ] { } } - Method [ <internal:http_message, prototype Psr\Http\Message\ServerRequestInterface> public method withoutAttribute ] { + Method [ <internal:http_message, prototype PsrExt\Http\Message\ServerRequestInterface> public method withoutAttribute ] { - Parameters [1] { Parameter #0 [ <required> $name ] } } - Method [ <internal:http_message, inherits HttpMessage\Request, prototype Psr\Http\Message\RequestInterface> public method getRequestTarget ] { + Method [ <internal:http_message, inherits HttpMessage\Request, prototype PsrExt\Http\Message\RequestInterface> public method getRequestTarget ] { - Parameters [0] { } } - Method [ <internal:http_message, inherits HttpMessage\Request, prototype Psr\Http\Message\RequestInterface> public method withRequestTarget ] { + Method [ <internal:http_message, inherits HttpMessage\Request, prototype PsrExt\Http\Message\RequestInterface> public method withRequestTarget ] { - Parameters [1] { Parameter #0 [ <required> $requestTarget ] } } - Method [ <internal:http_message, inherits HttpMessage\Request, prototype Psr\Http\Message\RequestInterface> public method getMethod ] { + Method [ <internal:http_message, inherits HttpMessage\Request, prototype PsrExt\Http\Message\RequestInterface> public method getMethod ] { - Parameters [0] { } } - Method [ <internal:http_message, inherits HttpMessage\Request, prototype Psr\Http\Message\RequestInterface> public method withMethod ] { + Method [ <internal:http_message, inherits HttpMessage\Request, prototype PsrExt\Http\Message\RequestInterface> public method withMethod ] { - Parameters [1] { Parameter #0 [ <required> $method ] } } - Method [ <internal:http_message, inherits HttpMessage\Request, prototype Psr\Http\Message\RequestInterface> public method getUri ] { + Method [ <internal:http_message, inherits HttpMessage\Request, prototype PsrExt\Http\Message\RequestInterface> public method getUri ] { - Parameters [0] { } } - Method [ <internal:http_message, inherits HttpMessage\Request, prototype Psr\Http\Message\RequestInterface> public method withUri ] { + Method [ <internal:http_message, inherits HttpMessage\Request, prototype PsrExt\Http\Message\RequestInterface> public method withUri ] { - Parameters [2] { Parameter #0 [ <required> Psr\Http\Message\UriInterface $uri ] - Parameter #1 [ <optional> $preserveHost ] + Parameter #1 [ <optional> $preserveHost = <default> ] } } - Method [ <internal:http_message, inherits HttpMessage\Message, prototype Psr\Http\Message\MessageInterface> public method getProtocolVersion ] { + Method [ <internal:http_message, inherits HttpMessage\Message, prototype PsrExt\Http\Message\MessageInterface> public method getProtocolVersion ] { - Parameters [0] { } } - Method [ <internal:http_message, inherits HttpMessage\Message, prototype Psr\Http\Message\MessageInterface> public method withProtocolVersion ] { + Method [ <internal:http_message, inherits HttpMessage\Message, prototype PsrExt\Http\Message\MessageInterface> public method withProtocolVersion ] { - Parameters [1] { Parameter #0 [ <required> $version ] } } - Method [ <internal:http_message, inherits HttpMessage\Message, prototype Psr\Http\Message\MessageInterface> public method getHeaders ] { + Method [ <internal:http_message, inherits HttpMessage\Message, prototype PsrExt\Http\Message\MessageInterface> public method getHeaders ] { - Parameters [0] { } } - Method [ <internal:http_message, inherits HttpMessage\Message, prototype Psr\Http\Message\MessageInterface> public method hasHeader ] { + Method [ <internal:http_message, inherits HttpMessage\Message, prototype PsrExt\Http\Message\MessageInterface> public method hasHeader ] { - Parameters [1] { Parameter #0 [ <required> $name ] } } - Method [ <internal:http_message, inherits HttpMessage\Message, prototype Psr\Http\Message\MessageInterface> public method getHeader ] { + Method [ <internal:http_message, inherits HttpMessage\Message, prototype PsrExt\Http\Message\MessageInterface> public method getHeader ] { - Parameters [1] { Parameter #0 [ <required> $name ] } } - Method [ <internal:http_message, inherits HttpMessage\Message, prototype Psr\Http\Message\MessageInterface> public method getHeaderLine ] { + Method [ <internal:http_message, inherits HttpMessage\Message, prototype PsrExt\Http\Message\MessageInterface> public method getHeaderLine ] { - Parameters [1] { Parameter #0 [ <required> $name ] } } - Method [ <internal:http_message, inherits HttpMessage\Message, prototype Psr\Http\Message\MessageInterface> public method withHeader ] { + Method [ <internal:http_message, inherits HttpMessage\Message, prototype PsrExt\Http\Message\MessageInterface> public method withHeader ] { - Parameters [2] { Parameter #0 [ <required> $name ] @@ -456,7 +456,7 @@ Extension [ <persistent> extension #191 http_message version 0.2.0 ] { } } - Method [ <internal:http_message, inherits HttpMessage\Message, prototype Psr\Http\Message\MessageInterface> public method withAddedHeader ] { + Method [ <internal:http_message, inherits HttpMessage\Message, prototype PsrExt\Http\Message\MessageInterface> public method withAddedHeader ] { - Parameters [2] { Parameter #0 [ <required> $name ] @@ -464,20 +464,20 @@ Extension [ <persistent> extension #191 http_message version 0.2.0 ] { } } - Method [ <internal:http_message, inherits HttpMessage\Message, prototype Psr\Http\Message\MessageInterface> public method withoutHeader ] { + Method [ <internal:http_message, inherits HttpMessage\Message, prototype PsrExt\Http\Message\MessageInterface> public method withoutHeader ] { - Parameters [1] { Parameter #0 [ <required> $name ] } } - Method [ <internal:http_message, inherits HttpMessage\Message, prototype Psr\Http\Message\MessageInterface> public method getBody ] { + Method [ <internal:http_message, inherits HttpMessage\Message, prototype PsrExt\Http\Message\MessageInterface> public method getBody ] { - Parameters [0] { } } - Method [ <internal:http_message, inherits HttpMessage\Message, prototype Psr\Http\Message\MessageInterface> public method withBody ] { + Method [ <internal:http_message, inherits HttpMessage\Message, prototype PsrExt\Http\Message\MessageInterface> public method withBody ] { - Parameters [1] { Parameter #0 [ <required> Psr\Http\Message\StreamInterface $body ] @@ -486,7 +486,7 @@ Extension [ <persistent> extension #191 http_message version 0.2.0 ] { } } - Class [ <internal:http_message> class HttpMessage\Response extends HttpMessage\Message implements Psr\Http\Message\MessageInterface, Psr\Http\Message\ResponseInterface ] { + Class [ <internal:http_message> class HttpMessage\Response extends HttpMessage\Message implements PsrExt\Http\Message\MessageInterface, PsrExt\Http\Message\ResponseInterface ] { - Constants [0] { } @@ -498,28 +498,28 @@ Extension [ <persistent> extension #191 http_message version 0.2.0 ] { } - Properties [2] { - Property [ <default> private $statusCode ] - Property [ <default> private $reasonPhrase ] + Property [ private $statusCode = 0 ] + Property [ private $reasonPhrase = '' ] } - Methods [15] { - Method [ <internal:http_message, prototype Psr\Http\Message\ResponseInterface> public method getStatusCode ] { + Method [ <internal:http_message, prototype PsrExt\Http\Message\ResponseInterface> public method getStatusCode ] { - Parameters [0] { } } - Method [ <internal:http_message, prototype Psr\Http\Message\ResponseInterface> public method getReasonPhrase ] { + Method [ <internal:http_message, prototype PsrExt\Http\Message\ResponseInterface> public method getReasonPhrase ] { - Parameters [0] { } } - Method [ <internal:http_message, prototype Psr\Http\Message\ResponseInterface> public method withStatus ] { + Method [ <internal:http_message, prototype PsrExt\Http\Message\ResponseInterface> public method withStatus ] { - Parameters [2] { Parameter #0 [ <required> $code ] - Parameter #1 [ <optional> $reasonPhrase ] + Parameter #1 [ <optional> $reasonPhrase = <default> ] } } @@ -529,47 +529,47 @@ Extension [ <persistent> extension #191 http_message version 0.2.0 ] { } } - Method [ <internal:http_message, inherits HttpMessage\Message, prototype Psr\Http\Message\MessageInterface> public method getProtocolVersion ] { + Method [ <internal:http_message, inherits HttpMessage\Message, prototype PsrExt\Http\Message\MessageInterface> public method getProtocolVersion ] { - Parameters [0] { } } - Method [ <internal:http_message, inherits HttpMessage\Message, prototype Psr\Http\Message\MessageInterface> public method withProtocolVersion ] { + Method [ <internal:http_message, inherits HttpMessage\Message, prototype PsrExt\Http\Message\MessageInterface> public method withProtocolVersion ] { - Parameters [1] { Parameter #0 [ <required> $version ] } } - Method [ <internal:http_message, inherits HttpMessage\Message, prototype Psr\Http\Message\MessageInterface> public method getHeaders ] { + Method [ <internal:http_message, inherits HttpMessage\Message, prototype PsrExt\Http\Message\MessageInterface> public method getHeaders ] { - Parameters [0] { } } - Method [ <internal:http_message, inherits HttpMessage\Message, prototype Psr\Http\Message\MessageInterface> public method hasHeader ] { + Method [ <internal:http_message, inherits HttpMessage\Message, prototype PsrExt\Http\Message\MessageInterface> public method hasHeader ] { - Parameters [1] { Parameter #0 [ <required> $name ] } } - Method [ <internal:http_message, inherits HttpMessage\Message, prototype Psr\Http\Message\MessageInterface> public method getHeader ] { + Method [ <internal:http_message, inherits HttpMessage\Message, prototype PsrExt\Http\Message\MessageInterface> public method getHeader ] { - Parameters [1] { Parameter #0 [ <required> $name ] } } - Method [ <internal:http_message, inherits HttpMessage\Message, prototype Psr\Http\Message\MessageInterface> public method getHeaderLine ] { + Method [ <internal:http_message, inherits HttpMessage\Message, prototype PsrExt\Http\Message\MessageInterface> public method getHeaderLine ] { - Parameters [1] { Parameter #0 [ <required> $name ] } } - Method [ <internal:http_message, inherits HttpMessage\Message, prototype Psr\Http\Message\MessageInterface> public method withHeader ] { + Method [ <internal:http_message, inherits HttpMessage\Message, prototype PsrExt\Http\Message\MessageInterface> public method withHeader ] { - Parameters [2] { Parameter #0 [ <required> $name ] @@ -577,7 +577,7 @@ Extension [ <persistent> extension #191 http_message version 0.2.0 ] { } } - Method [ <internal:http_message, inherits HttpMessage\Message, prototype Psr\Http\Message\MessageInterface> public method withAddedHeader ] { + Method [ <internal:http_message, inherits HttpMessage\Message, prototype PsrExt\Http\Message\MessageInterface> public method withAddedHeader ] { - Parameters [2] { Parameter #0 [ <required> $name ] @@ -585,20 +585,20 @@ Extension [ <persistent> extension #191 http_message version 0.2.0 ] { } } - Method [ <internal:http_message, inherits HttpMessage\Message, prototype Psr\Http\Message\MessageInterface> public method withoutHeader ] { + Method [ <internal:http_message, inherits HttpMessage\Message, prototype PsrExt\Http\Message\MessageInterface> public method withoutHeader ] { - Parameters [1] { Parameter #0 [ <required> $name ] } } - Method [ <internal:http_message, inherits HttpMessage\Message, prototype Psr\Http\Message\MessageInterface> public method getBody ] { + Method [ <internal:http_message, inherits HttpMessage\Message, prototype PsrExt\Http\Message\MessageInterface> public method getBody ] { - Parameters [0] { } } - Method [ <internal:http_message, inherits HttpMessage\Message, prototype Psr\Http\Message\MessageInterface> public method withBody ] { + Method [ <internal:http_message, inherits HttpMessage\Message, prototype PsrExt\Http\Message\MessageInterface> public method withBody ] { - Parameters [1] { Parameter #0 [ <required> Psr\Http\Message\StreamInterface $body ] @@ -607,7 +607,7 @@ Extension [ <persistent> extension #191 http_message version 0.2.0 ] { } } - Class [ <internal:http_message> class HttpMessage\Stream implements Psr\Http\Message\StreamInterface ] { + Class [ <internal:http_message> class HttpMessage\Stream implements PsrExt\Http\Message\StreamInterface ] { - Constants [0] { } @@ -619,115 +619,116 @@ Extension [ <persistent> extension #191 http_message version 0.2.0 ] { } - Properties [1] { - Property [ <default> private $stream ] + Property [ private $stream = NULL ] } - Methods [16] { Method [ <internal:http_message, ctor> public method __construct ] { - Parameters [1] { - Parameter #0 [ <optional> $uri ] + Parameter #0 [ <optional> $uri = <default> ] } } - Method [ <internal:http_message, prototype Psr\Http\Message\StreamInterface> public method __toString ] { + Method [ <internal:http_message, prototype PsrExt\Http\Message\StreamInterface> public method __toString ] { - Parameters [0] { } + - Return [ string ] } - Method [ <internal:http_message, prototype Psr\Http\Message\StreamInterface> public method close ] { + Method [ <internal:http_message, prototype PsrExt\Http\Message\StreamInterface> public method close ] { - Parameters [0] { } } - Method [ <internal:http_message, prototype Psr\Http\Message\StreamInterface> public method detach ] { + Method [ <internal:http_message, prototype PsrExt\Http\Message\StreamInterface> public method detach ] { - Parameters [0] { } } - Method [ <internal:http_message, prototype Psr\Http\Message\StreamInterface> public method getSize ] { + Method [ <internal:http_message, prototype PsrExt\Http\Message\StreamInterface> public method getSize ] { - Parameters [0] { } } - Method [ <internal:http_message, prototype Psr\Http\Message\StreamInterface> public method tell ] { + Method [ <internal:http_message, prototype PsrExt\Http\Message\StreamInterface> public method tell ] { - Parameters [0] { } } - Method [ <internal:http_message, prototype Psr\Http\Message\StreamInterface> public method eof ] { + Method [ <internal:http_message, prototype PsrExt\Http\Message\StreamInterface> public method eof ] { - Parameters [0] { } } - Method [ <internal:http_message, prototype Psr\Http\Message\StreamInterface> public method isSeekable ] { + Method [ <internal:http_message, prototype PsrExt\Http\Message\StreamInterface> public method isSeekable ] { - Parameters [0] { } } - Method [ <internal:http_message, prototype Psr\Http\Message\StreamInterface> public method seek ] { + Method [ <internal:http_message, prototype PsrExt\Http\Message\StreamInterface> public method seek ] { - Parameters [2] { Parameter #0 [ <required> $offset ] - Parameter #1 [ <optional> $whence ] + Parameter #1 [ <optional> $whence = <default> ] } } - Method [ <internal:http_message, prototype Psr\Http\Message\StreamInterface> public method rewind ] { + Method [ <internal:http_message, prototype PsrExt\Http\Message\StreamInterface> public method rewind ] { - Parameters [0] { } } - Method [ <internal:http_message, prototype Psr\Http\Message\StreamInterface> public method isWritable ] { + Method [ <internal:http_message, prototype PsrExt\Http\Message\StreamInterface> public method isWritable ] { - Parameters [0] { } } - Method [ <internal:http_message, prototype Psr\Http\Message\StreamInterface> public method write ] { + Method [ <internal:http_message, prototype PsrExt\Http\Message\StreamInterface> public method write ] { - Parameters [1] { Parameter #0 [ <required> $string ] } } - Method [ <internal:http_message, prototype Psr\Http\Message\StreamInterface> public method isReadable ] { + Method [ <internal:http_message, prototype PsrExt\Http\Message\StreamInterface> public method isReadable ] { - Parameters [0] { } } - Method [ <internal:http_message, prototype Psr\Http\Message\StreamInterface> public method read ] { + Method [ <internal:http_message, prototype PsrExt\Http\Message\StreamInterface> public method read ] { - Parameters [1] { Parameter #0 [ <required> $length ] } } - Method [ <internal:http_message, prototype Psr\Http\Message\StreamInterface> public method getContents ] { + Method [ <internal:http_message, prototype PsrExt\Http\Message\StreamInterface> public method getContents ] { - Parameters [0] { } } - Method [ <internal:http_message, prototype Psr\Http\Message\StreamInterface> public method getMetadata ] { + Method [ <internal:http_message, prototype PsrExt\Http\Message\StreamInterface> public method getMetadata ] { - Parameters [1] { - Parameter #0 [ <optional> $key ] + Parameter #0 [ <optional> $key = <default> ] } } } } - Class [ <internal:http_message> class HttpMessage\Uri implements Psr\Http\Message\UriInterface ] { + Class [ <internal:http_message> class HttpMessage\Uri implements PsrExt\Http\Message\UriInterface ] { - Constants [0] { } @@ -739,121 +740,122 @@ Extension [ <persistent> extension #191 http_message version 0.2.0 ] { } - Properties [7] { - Property [ <default> private $scheme ] - Property [ <default> private $userInfo ] - Property [ <default> private $host ] - Property [ <default> private $port ] - Property [ <default> private $path ] - Property [ <default> private $query ] - Property [ <default> private $fragment ] + Property [ private $scheme = '' ] + Property [ private $userInfo = '' ] + Property [ private $host = '' ] + Property [ private $port = NULL ] + Property [ private $path = '' ] + Property [ private $query = '' ] + Property [ private $fragment = '' ] } - Methods [17] { Method [ <internal:http_message, ctor> public method __construct ] { - Parameters [1] { - Parameter #0 [ <optional> string $uri ] + Parameter #0 [ <optional> string $uri = <default> ] } } - Method [ <internal:http_message, prototype Psr\Http\Message\UriInterface> public method __toString ] { + Method [ <internal:http_message, prototype PsrExt\Http\Message\UriInterface> public method __toString ] { - Parameters [0] { } + - Return [ string ] } - Method [ <internal:http_message, prototype Psr\Http\Message\UriInterface> public method getScheme ] { + Method [ <internal:http_message, prototype PsrExt\Http\Message\UriInterface> public method getScheme ] { - Parameters [0] { } } - Method [ <internal:http_message, prototype Psr\Http\Message\UriInterface> public method withScheme ] { + Method [ <internal:http_message, prototype PsrExt\Http\Message\UriInterface> public method withScheme ] { - Parameters [1] { Parameter #0 [ <required> $scheme ] } } - Method [ <internal:http_message, prototype Psr\Http\Message\UriInterface> public method getAuthority ] { + Method [ <internal:http_message, prototype PsrExt\Http\Message\UriInterface> public method getAuthority ] { - Parameters [0] { } } - Method [ <internal:http_message, prototype Psr\Http\Message\UriInterface> public method getUserInfo ] { + Method [ <internal:http_message, prototype PsrExt\Http\Message\UriInterface> public method getUserInfo ] { - Parameters [0] { } } - Method [ <internal:http_message, prototype Psr\Http\Message\UriInterface> public method withUserInfo ] { + Method [ <internal:http_message, prototype PsrExt\Http\Message\UriInterface> public method withUserInfo ] { - Parameters [2] { Parameter #0 [ <required> $user ] - Parameter #1 [ <optional> $password ] + Parameter #1 [ <optional> $password = <default> ] } } - Method [ <internal:http_message, prototype Psr\Http\Message\UriInterface> public method getHost ] { + Method [ <internal:http_message, prototype PsrExt\Http\Message\UriInterface> public method getHost ] { - Parameters [0] { } } - Method [ <internal:http_message, prototype Psr\Http\Message\UriInterface> public method withHost ] { + Method [ <internal:http_message, prototype PsrExt\Http\Message\UriInterface> public method withHost ] { - Parameters [1] { Parameter #0 [ <required> $host ] } } - Method [ <internal:http_message, prototype Psr\Http\Message\UriInterface> public method getPort ] { + Method [ <internal:http_message, prototype PsrExt\Http\Message\UriInterface> public method getPort ] { - Parameters [0] { } } - Method [ <internal:http_message, prototype Psr\Http\Message\UriInterface> public method withPort ] { + Method [ <internal:http_message, prototype PsrExt\Http\Message\UriInterface> public method withPort ] { - Parameters [1] { Parameter #0 [ <required> $port ] } } - Method [ <internal:http_message, prototype Psr\Http\Message\UriInterface> public method getPath ] { + Method [ <internal:http_message, prototype PsrExt\Http\Message\UriInterface> public method getPath ] { - Parameters [0] { } } - Method [ <internal:http_message, prototype Psr\Http\Message\UriInterface> public method withPath ] { + Method [ <internal:http_message, prototype PsrExt\Http\Message\UriInterface> public method withPath ] { - Parameters [1] { Parameter #0 [ <required> $path ] } } - Method [ <internal:http_message, prototype Psr\Http\Message\UriInterface> public method getQuery ] { + Method [ <internal:http_message, prototype PsrExt\Http\Message\UriInterface> public method getQuery ] { - Parameters [0] { } } - Method [ <internal:http_message, prototype Psr\Http\Message\UriInterface> public method withQuery ] { + Method [ <internal:http_message, prototype PsrExt\Http\Message\UriInterface> public method withQuery ] { - Parameters [1] { Parameter #0 [ <required> $query ] } } - Method [ <internal:http_message, prototype Psr\Http\Message\UriInterface> public method getFragment ] { + Method [ <internal:http_message, prototype PsrExt\Http\Message\UriInterface> public method getFragment ] { - Parameters [0] { } } - Method [ <internal:http_message, prototype Psr\Http\Message\UriInterface> public method withFragment ] { + Method [ <internal:http_message, prototype PsrExt\Http\Message\UriInterface> public method withFragment ] { - Parameters [1] { Parameter #0 [ <required> $fragment ] @@ -862,7 +864,7 @@ Extension [ <persistent> extension #191 http_message version 0.2.0 ] { } } - Class [ <internal:http_message> class HttpMessage\UploadedFile implements Psr\Http\Message\UploadedFileInterface ] { + Class [ <internal:http_message> class HttpMessage\UploadedFile implements PsrExt\Http\Message\UploadedFileInterface ] { - Constants [0] { } @@ -874,14 +876,14 @@ Extension [ <persistent> extension #191 http_message version 0.2.0 ] { } - Properties [8] { - Property [ <default> private $stream ] - Property [ <default> private $file ] - Property [ <default> private $size ] - Property [ <default> private $error ] - Property [ <default> private $clientFilename ] - Property [ <default> private $clientMediaType ] - Property [ <default> private $moved ] - Property [ <default> private $checkUploaded ] + Property [ private $stream = NULL ] + Property [ private $file = NULL ] + Property [ private $size = NULL ] + Property [ private $error = 0 ] + Property [ private $clientFilename = NULL ] + Property [ private $clientMediaType = NULL ] + Property [ private $moved = false ] + Property [ private $checkUploaded = false ] } - Methods [7] { @@ -889,46 +891,46 @@ Extension [ <persistent> extension #191 http_message version 0.2.0 ] { - Parameters [6] { Parameter #0 [ <required> $fileOrStream ] - Parameter #1 [ <optional> integer or NULL $size ] - Parameter #2 [ <optional> integer $error ] - Parameter #3 [ <optional> string or NULL $clientFilename ] - Parameter #4 [ <optional> string or NULL $clientMediaType ] - Parameter #5 [ <optional> $checkUploaded ] + Parameter #1 [ <optional> ?int $size = <default> ] + Parameter #2 [ <optional> int $error = <default> ] + Parameter #3 [ <optional> ?string $clientFilename = <default> ] + Parameter #4 [ <optional> ?string $clientMediaType = <default> ] + Parameter #5 [ <optional> $checkUploaded = <default> ] } } - Method [ <internal:http_message, prototype Psr\Http\Message\UploadedFileInterface> public method getStream ] { + Method [ <internal:http_message, prototype PsrExt\Http\Message\UploadedFileInterface> public method getStream ] { - Parameters [0] { } } - Method [ <internal:http_message, prototype Psr\Http\Message\UploadedFileInterface> public method moveTo ] { + Method [ <internal:http_message, prototype PsrExt\Http\Message\UploadedFileInterface> public method moveTo ] { - Parameters [1] { Parameter #0 [ <required> $targetPath ] } } - Method [ <internal:http_message, prototype Psr\Http\Message\UploadedFileInterface> public method getSize ] { + Method [ <internal:http_message, prototype PsrExt\Http\Message\UploadedFileInterface> public method getSize ] { - Parameters [0] { } } - Method [ <internal:http_message, prototype Psr\Http\Message\UploadedFileInterface> public method getError ] { + Method [ <internal:http_message, prototype PsrExt\Http\Message\UploadedFileInterface> public method getError ] { - Parameters [0] { } } - Method [ <internal:http_message, prototype Psr\Http\Message\UploadedFileInterface> public method getClientFilename ] { + Method [ <internal:http_message, prototype PsrExt\Http\Message\UploadedFileInterface> public method getClientFilename ] { - Parameters [0] { } } - Method [ <internal:http_message, prototype Psr\Http\Message\UploadedFileInterface> public method getClientMediaType ] { + Method [ <internal:http_message, prototype PsrExt\Http\Message\UploadedFileInterface> public method getClientMediaType ] { - Parameters [0] { } @@ -936,7 +938,7 @@ Extension [ <persistent> extension #191 http_message version 0.2.0 ] { } } - Class [ <internal:http_message> class HttpMessage\Factory implements Psr\Http\Message\RequestFactoryInterface, Psr\Http\Message\ResponseFactoryInterface, Psr\Http\Message\ServerRequestFactoryInterface, Psr\Http\Message\StreamFactoryInterface, Psr\Http\Message\UploadedFileFactoryInterface, Psr\Http\Message\UriFactoryInterface ] { + Class [ <internal:http_message> class HttpMessage\Factory implements PsrExt\Http\Message\RequestFactoryInterface, PsrExt\Http\Message\ResponseFactoryInterface, PsrExt\Http\Message\ServerRequestFactoryInterface, PsrExt\Http\Message\StreamFactoryInterface, PsrExt\Http\Message\UploadedFileFactoryInterface, PsrExt\Http\Message\UriFactoryInterface ] { - Constants [0] { } @@ -951,7 +953,7 @@ Extension [ <persistent> extension #191 http_message version 0.2.0 ] { } - Methods [8] { - Method [ <internal:http_message, prototype Psr\Http\Message\RequestFactoryInterface> public method createRequest ] { + Method [ <internal:http_message, prototype PsrExt\Http\Message\RequestFactoryInterface> public method createRequest ] { - Parameters [2] { Parameter #0 [ <required> string $method ] @@ -960,43 +962,43 @@ Extension [ <persistent> extension #191 http_message version 0.2.0 ] { - Return [ Psr\Http\Message\RequestInterface ] } - Method [ <internal:http_message, prototype Psr\Http\Message\ResponseFactoryInterface> public method createResponse ] { + Method [ <internal:http_message, prototype PsrExt\Http\Message\ResponseFactoryInterface> public method createResponse ] { - Parameters [2] { - Parameter #0 [ <optional> integer $code ] - Parameter #1 [ <optional> string $reasonPhrase ] + Parameter #0 [ <optional> int $code = <default> ] + Parameter #1 [ <optional> string $reasonPhrase = <default> ] } - Return [ Psr\Http\Message\ResponseInterface ] } - Method [ <internal:http_message, prototype Psr\Http\Message\ServerRequestFactoryInterface> public method createServerRequest ] { + Method [ <internal:http_message, prototype PsrExt\Http\Message\ServerRequestFactoryInterface> public method createServerRequest ] { - Parameters [3] { Parameter #0 [ <required> string $method ] Parameter #1 [ <required> $uri ] - Parameter #2 [ <optional> array $serverParams ] + Parameter #2 [ <optional> array $serverParams = <default> ] } - Return [ Psr\Http\Message\ServerRequestInterface ] } - Method [ <internal:http_message, prototype Psr\Http\Message\StreamFactoryInterface> public method createStream ] { + Method [ <internal:http_message, prototype PsrExt\Http\Message\StreamFactoryInterface> public method createStream ] { - Parameters [1] { - Parameter #0 [ <optional> string $content ] + Parameter #0 [ <optional> string $content = <default> ] } - Return [ Psr\Http\Message\StreamInterface ] } - Method [ <internal:http_message, prototype Psr\Http\Message\StreamFactoryInterface> public method createStreamFromFile ] { + Method [ <internal:http_message, prototype PsrExt\Http\Message\StreamFactoryInterface> public method createStreamFromFile ] { - Parameters [2] { Parameter #0 [ <required> string $filename ] - Parameter #1 [ <optional> string $mode ] + Parameter #1 [ <optional> string $mode = <default> ] } - Return [ Psr\Http\Message\StreamInterface ] } - Method [ <internal:http_message, prototype Psr\Http\Message\StreamFactoryInterface> public method createStreamFromResource ] { + Method [ <internal:http_message, prototype PsrExt\Http\Message\StreamFactoryInterface> public method createStreamFromResource ] { - Parameters [1] { Parameter #0 [ <required> $resouce ] @@ -1004,27 +1006,51 @@ Extension [ <persistent> extension #191 http_message version 0.2.0 ] { - Return [ Psr\Http\Message\StreamInterface ] } - Method [ <internal:http_message, prototype Psr\Http\Message\UploadedFileFactoryInterface> public method createUploadedFile ] { + Method [ <internal:http_message, prototype PsrExt\Http\Message\UploadedFileFactoryInterface> public method createUploadedFile ] { - Parameters [5] { Parameter #0 [ <required> Psr\Http\Message\StreamInterface $stream ] - Parameter #1 [ <optional> integer or NULL $size ] - Parameter #2 [ <optional> integer $error ] - Parameter #3 [ <optional> string or NULL $clientFilename ] - Parameter #4 [ <optional> string or NULL $clientMediaType ] + Parameter #1 [ <optional> ?int $size = <default> ] + Parameter #2 [ <optional> int $error = <default> ] + Parameter #3 [ <optional> ?string $clientFilename = <default> ] + Parameter #4 [ <optional> ?string $clientMediaType = <default> ] } - Return [ Psr\Http\Message\UploadedFileInterface ] } - Method [ <internal:http_message, prototype Psr\Http\Message\UriFactoryInterface> public method createUri ] { + Method [ <internal:http_message, prototype PsrExt\Http\Message\UriFactoryInterface> public method createUri ] { - Parameters [1] { - Parameter #0 [ <optional> string $uri ] + Parameter #0 [ <optional> string $uri = <default> ] } - Return [ Psr\Http\Message\UriInterface ] } } } + + Class [ <internal:http_message> class HttpMessage\Emitter ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [0] { + } + + - Methods [1] { + Method [ <internal:http_message> public method emit ] { + + - Parameters [1] { + Parameter #0 [ <optional> Psr\Http\Message\ResponseInterface $serverParams = <default> ] + } + } + } + } } } diff --git a/php-pecl-http-message.spec b/php-pecl-http-message.spec index 519e555..690c268 100644 --- a/php-pecl-http-message.spec +++ b/php-pecl-http-message.spec @@ -1,6 +1,6 @@ # remirepo spec file for php-pecl-http-message # -# Copyright (c) 2019 Remi Collet +# Copyright (c) 2019-2021 Remi Collet # License: CC-BY-SA # http://creativecommons.org/licenses/by-sa/4.0/ # @@ -20,20 +20,27 @@ Summary: PSR-7 HTTP Message implementation Name: %{?sub_prefix}php-pecl-http-message -Version: 0.2.0 +Version: 1.0.0 Release: 1%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}} License: BSD -URL: http://pecl.php.net/package/%{pecl_name} -Source0: http://pecl.php.net/get/%{pecl_name}-%{version}%{?prever}.tgz +URL: https://pecl.php.net/package/%{pecl_name} +Source0: https://pecl.php.net/get/%{pecl_name}-%{version}%{?prever}.tgz +Patch1: https://patch-diff.githubusercontent.com/raw/improved-php-library/http-message/pull/7.patch + +BuildRequires: make BuildRequires: %{?dtsprefix}gcc -BuildRequires: %{?scl_prefix}php-devel > 7.2 +BuildRequires: %{?scl_prefix}php-devel >= 7.2 BuildRequires: %{?scl_prefix}php-pecl-psr-devel >= 0.6 BuildRequires: %{?scl_prefix}php-pear Requires: %{?scl_prefix}php(zend-abi) = %{php_zend_api} Requires: %{?scl_prefix}php(api) = %{php_core_api} +%if "%{php_version}" > "8.0" +Requires: %{?scl_prefix}php-psr%{?_isa} >= 1.2 +%else Requires: %{?scl_prefix}php-psr%{?_isa} >= 0.6 +%endif %{?_sclreq:Requires: %{?scl_prefix}runtime%{?_sclreq}%{?_isa}} Provides: %{?scl_prefix}php-%{pecl_name} = %{version} @@ -43,24 +50,21 @@ Provides: %{?scl_prefix}php-pecl(%{pecl_name})%{?_isa} = %{version} Provides: %{?scl_prefix}php-pecl-%{pecl_name} = %{version}-%{release} Provides: %{?scl_prefix}php-pecl-%{pecl_name}%{?_isa} = %{version}-%{release} -%if "%{?vendor}" == "Remi Collet" && 0%{!?scl:1} && 0%{?rhel} +%if "%{?packager}" == "Remi Collet" && 0%{!?scl:1} && 0%{?rhel} # Other third party repo stuff Obsoletes: php72u-pecl-%{pecl_name} <= %{version} -Obsoletes: php72w-pecl-%{pecl_name} <= %{version} %if "%{php_version}" > "7.3" Obsoletes: php73-pecl-%{pecl_name} <= %{version} -Obsoletes: php73w-pecl-%{pecl_name} <= %{version} %endif %if "%{php_version}" > "7.4" Obsoletes: php74-pecl-%{pecl_name} <= %{version} -Obsoletes: php74w-pecl-%{pecl_name} <= %{version} %endif +%if "%{php_version}" > "8.0" +Obsoletes: php80-pecl-%{pecl_name} <= %{version} +%endif +%if "%{php_version}" > "8.1" +Obsoletes: php81-pecl-%{pecl_name} <= %{version} %endif - -%if 0%{?fedora} < 20 && 0%{?rhel} < 7 -# Filter shared private -%{?filter_provides_in: %filter_provides_in %{_libdir}/.*\.so$} -%{?filter_setup} %endif @@ -90,6 +94,7 @@ mv %{pecl_name}-%{version}%{?prever} NTS %{?_licensedir:sed -e '/LICENSE/s/role="doc"/role="src"/' -i package.xml} cd NTS +%patch1 -p1 -b .pr7 # Sanity check, really often broken extver=$(sed -n '/#define PHP_HTTP_MESSAGE_VERSION/{s/.* "//;s/".*$//;p}' php_http_message.h) @@ -202,6 +207,9 @@ cd ../ZTS --modules | grep %{pecl_name} %if %{with_tests} +: Ignore tests using CGI +rm -r tests/Emitter + : Upstream test suite for NTS extension TEST_PHP_EXECUTABLE=%{__ztsphp} \ TEST_PHP_ARGS="$OPT -d extension=$PWD/modules/%{pecl_name}.so" \ @@ -235,6 +243,33 @@ REPORT_EXIT_STATUS=1 \ %changelog +* Mon Dec 13 2021 Remi Collet <remi@remirepo.net> - 1.0.0-1 +- update to 1.0.0 +- drop patches merged upstream +- open https://github.com/improved-php-library/http-message/issues/5 + version 1.0.0 missing on pecl +- open https://github.com/improved-php-library/http-message/issues/6 + comptibility with psr 1.2.0 +- add patch for ext 1.2.0 from + https://github.com/improved-php-library/http-message/pull/7 + +* Wed Sep 30 2020 Remi Collet <remi@remirepo.net> - 0.2.2-4 +- rebuild for PHP 8.0.0RC1 +- add patch from https://github.com/improved-php-library/http-message/pull/4 + +* Wed Sep 2 2020 Remi Collet <remi@remirepo.net> - 0.2.2-3 +- rebuild for PHP 8.0.0beta3 + +* Tue Sep 1 2020 Remi Collet <remi@remirepo.net> - 0.2.2-2 +- add patch for PHP 8 from + https://github.com/improved-php-library/http-message/pull/3 + +* Tue Aug 25 2020 Remi Collet <remi@remirepo.net> - 0.2.2-1 +- update to 0.2.2 + +* Thu Nov 7 2019 Remi Collet <remi@remirepo.net> - 0.2.1-1 +- update to 0.2.1 + * Thu Sep 5 2019 Remi Collet <remi@remirepo.net> - 0.2.0-1 - update to 0.2.0 |