This is a SECURITY and feature release for the 1.x series of ReactPHP's HTTP component.
Security fix: This release fixes a medium severity security issue in ReactPHP's HTTP server component
that affects all versions between v0.7.0 and v1.6.0. All users are encouraged to upgrade immediately.
Special thanks to Marco Squarcina (TU Wien) for reporting this and working with us to coordinate this release.
(CVE-2022-36032 reported by @lavish and fixed by @clue)
Feature: Improve HTTP server performance by ~20%, reuse syscall values for clock time and socket addresses.
(#457 and #467 by @clue)
Feature: Full PHP 8.2+ compatibility, refactor internal Transaction to avoid assigning dynamic properties.
(#459 by @clue and #466 by @WyriHaximus)
Feature / Fix: Allow explicit Content-Length response header on HEAD requests.
(#444 by @mrsimonbennett)
Improve test suite, update to use new reactphp/async package instead of clue/reactphp-block,
skip memory tests when lowering memory limit fails and fix legacy HHVM build.
(#464 and #440 by @clue and #450 by @SimonFrings)
v1.6.0
Feature: Add factory methods for common HTML/JSON/plaintext/XML response types.
(#439 by @clue)
Feature: Expose all status code constants via Response class.
(#432 by @clue)
$response = new React\Http\Message\Response(
React\Http\Message\Response::STATUS_OK, // 200 OK
…
);
$response = new React\Http\Message\Response(
React\Http\Message\Response::STATUS_NOT_FOUND, // 404 Not Found
…
);
This is a SECURITY and feature release for the 1.x series of ReactPHP's HTTP component.
Security fix: This release fixes a medium severity security issue in ReactPHP's HTTP server component
that affects all versions between v0.7.0 and v1.6.0. All users are encouraged to upgrade immediately.
Special thanks to Marco Squarcina (TU Wien) for reporting this and working with us to coordinate this release.
(CVE-2022-36032 reported by @lavish and fixed by @clue)
Feature: Improve HTTP server performance by ~20%, reuse syscall values for clock time and socket addresses.
(#457 and #467 by @clue)
Feature: Full PHP 8.2+ compatibility, refactor internal Transaction to avoid assigning dynamic properties.
(#459 by @clue and #466 by @WyriHaximus)
Feature / Fix: Allow explicit Content-Length response header on HEAD requests.
(#444 by @mrsimonbennett)
Improve test suite, update to use new reactphp/async package instead of clue/reactphp-block,
skip memory tests when lowering memory limit fails and fix legacy HHVM build.
(#464 and #440 by @clue and #450 by @SimonFrings)
1.6.0 (2022-02-03)
Feature: Add factory methods for common HTML/JSON/plaintext/XML response types.
(#439 by @clue)
Feature: Expose all status code constants via Response class.
(#432 by @clue)
$response = new React\Http\Message\Response(
React\Http\Message\Response::STATUS_OK, // 200 OK
…
);
$response = new React\Http\Message\Response(
React\Http\Message\Response::STATUS_NOT_FOUND, // 404 Not Found
…
);
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
- `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language
- `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language
- `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language
- `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language
You can disable automated security fix PRs for this repo from the [Security Alerts page](https://github.com/GTFB/Altrp/network/alerts).
Bumps react/http from 1.3.0 to 1.7.0.
Release notes
Sourced from react/http's releases.
... (truncated)
Changelog
Sourced from react/http's changelog.
... (truncated)
Commits
4a1e853
Prepare v1.7.0 release5f3b58c
Merge pull request #466 from WyriHaximus-labs/1.x-test-on-php-8.257b259e
Merge pull request from GHSA-w3w9-vrf5-8mx8f0b4859
Test on PHP 8.200e481e
Merge pull request #467 from clue-labs/reuse-addressd92e564
Improve performance, reuse server params for same connection663c9a3
Do not decode cookie names anymoreb5a66a4
Merge pull request #464 from clue-labs/async9946ba7
Update to use new reactphp/async package instead of clue/reactphp-blocka2ae0f1
Avoid using deprecated functions from clue/reactphp-blockDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) - `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language - `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language - `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language - `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language You can disable automated security fix PRs for this repo from the [Security Alerts page](https://github.com/GTFB/Altrp/network/alerts).