We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 720ffc6 + 6d765b0 commit b06c154Copy full SHA for b06c154
src/StreamEncryption.php
@@ -30,7 +30,9 @@ public function __construct(LoopInterface $loop)
30
// https://github.com/reactphp/socket-client/issues/24
31
// On versions affected by this bug we need to fread the stream until we
32
// get an empty string back because the buffer indicator could be wrong
33
- $this->wrapSecure = true;
+ if (version_compare(PHP_VERSION, '5.6.8', '<')) {
34
+ $this->wrapSecure = true;
35
+ }
36
37
if (defined('STREAM_CRYPTO_METHOD_TLSv1_0_CLIENT')) {
38
$this->method |= STREAM_CRYPTO_METHOD_TLSv1_0_CLIENT;
0 commit comments