Skip to content

Commit 6604508

Browse files
committed
Avoid unneeded warning when decoding invalid data on PHP 7.4
1 parent e41c74d commit 6604508

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ php:
88
- 7.0
99
- 7.1
1010
- 7.2
11+
- 7.3
12+
- 7.4
1113
- nightly # ignore errors, see below
1214
- hhvm # ignore errors, see below
1315

src/ChunkedStreamDecoder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ protected function iterateBuffer()
111111
}
112112
}
113113
$this->nextChunkIsLength = false;
114-
if (dechex(hexdec($lengthChunk)) !== strtolower($lengthChunk)) {
114+
if (dechex(@hexdec($lengthChunk)) !== strtolower($lengthChunk)) {
115115
$this->emit('error', array(
116116
new Exception('Unable to validate "' . $lengthChunk . '" as chunk length header'),
117117
));

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy