Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fsockopen: anticipate on PHP 8.4 deprecation of `stream_context_set_o…
…ption()` overloaded signature PHP 8.4 will deprecate the two parameter signature of the `stream_context_set_option()` function. PHP 8.3 will introduce a replacement function `stream_context_set_options()` (take note of the `s` at the end!) for the two parameter signature. This commit adds a toggle to the `Fsockopen::request()` method to call the correct PHP function based on its availability. Refs: * https://wiki.php.net/rfc/deprecate_functions_with_overloaded_signatures#stream_context_set_option * https://www.php.net/stream_context_set_option * (docs for the new function are not yet available)
- Loading branch information