Repository navigation
Conversation
The socket transport implemented HTTP/1.x by hand on top of fsockopen(): it could not be configured for TLS, did not support proxies and did not decode chunked responses. It is deprecated in 4.x; remove it and document the change in a new v4-to-v5 update guide. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
Author
|
As I wrote on #90, I'm not sure if this should be removed in 5.0 or if we should wait until 6.0. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary of Changes
Removes
Joomla\Http\Transport\Socket, which #90 deprecates in 4.x. The socket transport implemented HTTP/1.x by hand on top offsockopen(): no TLS configuration (no stream context, so no CA bundle, minimum TLS version or client certificate), no proxy support, no chunked decoding, and hand-written redirect handling.HttpFactorynow chooses between the cURL and the stream transport only; the stream transport only needsallow_url_fopen.src/Transport/Socket.phpis deleted; nothing else insrc/referenced it (the factory discovers transports from the folder).Depends on #90 (the 4.x deprecation). When 4.x-dev is merged into 5.x-dev, the 4.x changes to
src/Transport/Socket.php(#86 header lookups, #87 proxy warning, #90 deprecation) conflict as modify/delete and are resolved by keeping the deletion; their socket-specific tests (SocketDeprecationTest.phpand the socket cases inHeaderNormalisationTestandProxyOptionsTest) have to be removed in the same merge, andsymfony/deprecation-contracts, added by #90 only for this deprecation, can be dropped again if nothing else uses it by then.Testing Instructions
vendor/bin/phpunitwith the stub served (php -S localhost:8080 -t Tests/stubs): all tests pass with the cURL and stream transports.HttpFactoryTest::testGetHttpTransports()expects['Curl', 'Stream'].Documentation Changes Required
docs/v4-to-v5-update.md(linked fromdocs/index.md) with the removal, a before/after example and how to find call sites.docs/classes/TransportInterface.mdanddocs/overview.mdno longer describe the socket transport.🤖 Generated with Claude Code