summaryrefslogtreecommitdiffstats
path: root/php-react-http-client-php8.patch
blob: 2a5ee7b599d14b92e103a7fd817bbf4404236d15 (plain)
1
2
3
4
5
6
7
8
9
10
11
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'),
                 ));