We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7d02e82 + 7c2ccd0 commit ffa0540Copy full SHA for ffa0540
src/ChunkedStreamDecoder.php
@@ -111,7 +111,7 @@ protected function iterateBuffer()
111
}
112
113
$this->nextChunkIsLength = false;
114
- if (dechex(@hexdec($lengthChunk)) !== strtolower($lengthChunk)) {
+ if (dechex((int)@hexdec($lengthChunk)) !== strtolower($lengthChunk)) {
115
$this->emit('error', array(
116
new Exception('Unable to validate "' . $lengthChunk . '" as chunk length header'),
117
));
0 commit comments