amphp / amphp/socket

Calling stream_context_set_option() with 2 arguments is deprecated, use stream_context_set_options() instead

Open
#116 0 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.