Skip to content

Commit b06c154

Browse files
committed
Merge branch '5.6.8-fix'
2 parents 720ffc6 + 6d765b0 commit b06c154

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/StreamEncryption.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@ public function __construct(LoopInterface $loop)
3030
// https://github.com/reactphp/socket-client/issues/24
3131
// On versions affected by this bug we need to fread the stream until we
3232
// get an empty string back because the buffer indicator could be wrong
33-
$this->wrapSecure = true;
33+
if (version_compare(PHP_VERSION, '5.6.8', '<')) {
34+
$this->wrapSecure = true;
35+
}
3436

3537
if (defined('STREAM_CRYPTO_METHOD_TLSv1_0_CLIENT')) {
3638
$this->method |= STREAM_CRYPTO_METHOD_TLSv1_0_CLIENT;

0 commit comments

Comments
 (0)