From 7c2f6e605ea40c745d4033bc1d2423fe935f56bc Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 7 Apr 2021 16:09:09 +0200 Subject: fix FTBFS with PHP 8 --- php-react-http-client-php8.patch | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 php-react-http-client-php8.patch (limited to 'php-react-http-client-php8.patch') diff --git a/php-react-http-client-php8.patch b/php-react-http-client-php8.patch new file mode 100644 index 0000000..2a5ee7b --- /dev/null +++ b/php-react-http-client-php8.patch @@ -0,0 +1,12 @@ +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'), + )); -- cgit