@@ -472,7 +472,7 @@ $socket = new React\Socket\SocketServer('tls://127.0.0.1:8000', array(
472
472
```
473
473
474
474
By default, this server supports TLSv1.0+ and excludes support for legacy
475
- SSLv2/SSLv3. As of PHP 5.6+ you can also explicitly choose the TLS version you
475
+ SSLv2/SSLv3. You can also explicitly choose the TLS version you
476
476
want to negotiate with the remote side:
477
477
478
478
``` php
@@ -650,7 +650,7 @@ $server = new React\Socket\SecureServer($server, null, array(
650
650
```
651
651
652
652
By default, this server supports TLSv1.0+ and excludes support for legacy
653
- SSLv2/SSLv3. As of PHP 5.6+ you can also explicitly choose the TLS version you
653
+ SSLv2/SSLv3. You can also explicitly choose the TLS version you
654
654
want to negotiate with the remote side:
655
655
656
656
``` php
@@ -1087,7 +1087,7 @@ $connector->connect('tls://localhost:443')->then(function (React\Socket\Connecti
1087
1087
```
1088
1088
1089
1089
By default, this connector supports TLSv1.0+ and excludes support for legacy
1090
- SSLv2/SSLv3. As of PHP 5.6+ you can also explicitly choose the TLS version you
1090
+ SSLv2/SSLv3. You can also explicitly choose the TLS version you
1091
1091
want to negotiate with the remote side:
1092
1092
1093
1093
``` php
@@ -1370,7 +1370,7 @@ $secureConnector = new React\Socket\SecureConnector($dnsConnector, null, array(
1370
1370
```
1371
1371
1372
1372
By default, this connector supports TLSv1.0+ and excludes support for legacy
1373
- SSLv2/SSLv3. As of PHP 5.6+ you can also explicitly choose the TLS version you
1373
+ SSLv2/SSLv3. You can also explicitly choose the TLS version you
1374
1374
want to negotiate with the remote side:
1375
1375
1376
1376
``` php
@@ -1490,17 +1490,8 @@ composer require react/socket:^3@dev
1490
1490
See also the [ CHANGELOG] ( CHANGELOG.md ) for details about version upgrades.
1491
1491
1492
1492
This project aims to run on any platform and thus does not require any PHP
1493
- extensions and supports running on legacy PHP 5.3 through current PHP 8+ and HHVM.
1494
- It's * highly recommended to use the latest supported PHP version* for this project,
1495
- partly due to its vast performance improvements and partly because legacy PHP
1496
- versions require several workarounds as described below.
1497
-
1498
- Secure TLS connections received some major upgrades starting with PHP 5.6, with
1499
- the defaults now being more secure, while older versions required explicit
1500
- context options.
1501
- This library does not take responsibility over these context options, so it's
1502
- up to consumers of this library to take care of setting appropriate context
1503
- options as described above.
1493
+ extensions and supports running on PHP 7.1 through current PHP 8+.
1494
+ It's * highly recommended to use the latest supported PHP version* for this project.
1504
1495
1505
1496
PHP < 7.3.3 (and PHP < 7.2.15) suffers from a bug where feof() might
1506
1497
block with 100% CPU usage on fragmented TLS records.
@@ -1511,21 +1502,13 @@ cause very large data chunks for high throughput scenarios. The buggy
1511
1502
behavior can still be triggered due to network I/O buffers or
1512
1503
malicious peers on affected versions, upgrading is highly recommended.
1513
1504
1514
- PHP < 7.1.4 (and PHP < 7.0.18) suffers from a bug when writing big
1505
+ PHP < 7.1.4 suffers from a bug when writing big
1515
1506
chunks of data over TLS streams at once.
1516
1507
We try to work around this by limiting the write chunk size to 8192
1517
1508
bytes for older PHP versions only.
1518
1509
This is only a work-around and has a noticable performance penalty on
1519
1510
affected versions.
1520
1511
1521
- This project also supports running on HHVM.
1522
- Note that really old HHVM < 3.8 does not support secure TLS connections, as it
1523
- lacks the required ` stream_socket_enable_crypto() ` function.
1524
- As such, trying to create a secure TLS connections on affected versions will
1525
- return a rejected promise instead.
1526
- This issue is also covered by our test suite, which will skip related tests
1527
- on affected versions.
1528
-
1529
1512
## Tests
1530
1513
1531
1514
To run the test suite, you first need to clone this repo and then install all
0 commit comments