Calling stream_context_set_option() with 2 arguments is deprecated, use stream_context_set_options() instead
Open
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 269
- Forks
- 37
- PR merge metrics
- No merged PRs in 30d
Description
since PHP 8.3
vendor/amphp/socket/src/Internal/functions.php: \stream_context_set_option($socket, $options);
(sorry for the minimalist issue, I'm in the middle of another bug :) )
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading vendor/amphp/socket/src/Internal/functions.php and the stream_context_set_option() call shown in the issue. Verify the replacement preserves the existing socket options and confirm the deprecated two-argument call is no longer used under PHP 8.3.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- networking
- Issue type
- Bug
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 55/100