Document socket_set_timeout() deprecation in PHP 8.5 - #5669
Open
lacatoire wants to merge 1 commit into
Open
Conversation
lacatoire
force-pushed
the
feat/socket-set-timeout-deprecation
branch
from
August 20, 2026 14:26
524f97b to
4cac143
Compare
lacatoire
force-pushed
the
feat/socket-set-timeout-deprecation
branch
from
August 20, 2026 14:35
4cac143 to
cbfae7b
Compare
lacatoire
force-pushed
the
feat/socket-set-timeout-deprecation
branch
from
August 21, 2026 10:00
cbfae7b to
5e99f4f
Compare
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.
socket_set_timeout()is an alias ofstream_set_timeout()and was deprecated in PHP 8.5, but its manual page carries no deprecation notice.See Alsoentry on the function page, mirroringmysqli_execute— the only other alias page deprecated in the same version.deprecated="PHP 8.5.0"inversions.xml, as already done forcurl_close(),curl_share_close(),finfo_close(),imagedestroy(),ldap_connect_wallet()andxml_parser_free().The deprecation itself is already covered in the 8.5 migration appendix; this only fixes the function page.
Sources
21625006e5):#[\Deprecated(since: '8.5', message: "use stream_set_timeout() instead")]inext/standard/basic_functions.stub.phpTracker: PHP 8.5 Documentation Tracker