Assign empty remote address if socket address is unknown (Unix sockets) on PHP 8.1+ #1108
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This changeset assigns an empty remote address if socket address is unknown (Unix sockets) on PHP 8.1+. This is in line with the existing behavior on older PHP versions. This is part 11 of reviving Ratchet as discussed in #1054, unblocking more future progress.
Similar to #1107, this wasn't caught by the previous tests because the
IoServerdoesn't have full test coverage. I've updated the tests to ensure this should not happen again. This builds on top of recent workarounds introduced with #1096 and others. The test suite confirms this now has full test coverage and does not otherwise affect any of the existing tests.Overall, this required quite a massive effort. If you want to support this project, please consider sponsoring @reactphp ❤️
Builds on top of #1094, #1096 and others, one step closer to reviving Ratchet as discussed in #1054
Resolves / closes #1036