diff options
author | Remi Collet <remi@remirepo.net> | 2021-04-08 07:22:15 +0200 |
---|---|---|
committer | Remi Collet <remi@remirepo.net> | 2021-04-08 07:22:15 +0200 |
commit | 88e55d8c851452f9cf2d275c9a6e97685d2df4d6 (patch) | |
tree | 7fb67cee147f3daae2424c25160c83daba31d851 | |
parent | 7c2f6e605ea40c745d4033bc1d2423fe935f56bc (diff) |
-rw-r--r-- | php-react-http-client-php8.patch | 12 | ||||
-rw-r--r-- | php-react-http-client.spec | 14 |
2 files changed, 6 insertions, 20 deletions
diff --git a/php-react-http-client-php8.patch b/php-react-http-client-php8.patch deleted file mode 100644 index 2a5ee7b..0000000 --- a/php-react-http-client-php8.patch +++ /dev/null @@ -1,12 +0,0 @@ -diff -up ./src/ChunkedStreamDecoder.php.php8 ./src/ChunkedStreamDecoder.php ---- ./src/ChunkedStreamDecoder.php.php8 2021-04-07 16:01:26.474243377 +0200 -+++ ./src/ChunkedStreamDecoder.php 2021-04-07 16:01:46.823149969 +0200 -@@ -111,7 +111,7 @@ class ChunkedStreamDecoder extends Event - } - } - $this->nextChunkIsLength = false; -- if (dechex(@hexdec($lengthChunk)) !== strtolower($lengthChunk)) { -+ if (dechex((int)@hexdec($lengthChunk)) !== strtolower($lengthChunk)) { - $this->emit('error', array( - new Exception('Unable to validate "' . $lengthChunk . '" as chunk length header'), - )); diff --git a/php-react-http-client.spec b/php-react-http-client.spec index 4522c81..a78d794 100644 --- a/php-react-http-client.spec +++ b/php-react-http-client.spec @@ -12,8 +12,8 @@ %global github_owner reactphp %global github_name http-client -%global github_version 0.5.10 -%global github_commit f16ab55150ec369f8f9b5db64972f248691093b0 +%global github_version 0.5.11 +%global github_commit 23dddb415b9bd36c81d1c78df63143e65702aa4b %global composer_vendor react %global composer_project http-client @@ -59,7 +59,7 @@ Name: php-%{composer_vendor}-%{composer_project} Version: %{github_version} -Release: 9%{?github_release}%{?dist} +Release: 1%{?github_release}%{?dist} Summary: Asynchronous HTTP client library License: MIT @@ -70,10 +70,6 @@ URL: https://reactphp.org/http-client/ Source0: %{name}-%{github_version}-%{github_commit}.tar.gz Source1: %{name}-get-source.sh -# minimal PHP 8 patch -# not submitted upstream as dead project -Patch0: %{name}-php8.patch - BuildArch: noarch # Tests %if %{with_tests} @@ -153,7 +149,6 @@ Autoloader: %{phpdir}/React/HttpClient/autoload.php %prep %setup -qn %{github_name}-%{github_commit} -%patch0 -p1 %build @@ -226,6 +221,9 @@ exit $RETURN_CODE %changelog +* Thu Apr 8 2021 Remi Collet <remi@remirepo.net> - 0.5.11-1 +- update to 0.5.11 + * Wed Apr 7 2021 Remi Collet <remi@remirepo.net> - 0.5.10-9 - fix FTBFS with PHP 8 |