bukka added a commit to bukka/php-src that referenced this pull request
May 28, 2026This introduces new stream error handling that allows configurable handling of stream errors. This can be configured in stream contex. All streams, ext/standard and ext/phar stream errors are converted to use the new API. RFC: https://wiki.php.net/rfc/stream_errors Closes phpGH-20524
This introduces new stream error handling that allows configurable handling of stream errors. This can be configured in stream contex. All streams, ext/standard and ext/phar stream errors are converted to use the new API. RFC: https://wiki.php.net/rfc/stream_errors Closes phpGH-20524
Merged
bukka pushed a commit that referenced this pull request
Jun 14, 2026Since GH-20524, _php_stream_open_wrapper_ex() attaches the context to a stream that has none, including the implicitly substituted default context. Sharing the default context by reference let a later stream_context_set_option() on the stream mutate the global default context, leaking options into every other context-less stream. Only attach explicitly provided contexts. Stream errors already fall back to the default context when the stream has none, so error handling is unaffected.
adrian-enspired pushed a commit to adrian-enspired/php-src that referenced this pull request
Aug 4, 2026This introduces new stream error handling that allows configurable handling of stream errors. This can be configured in stream contex. All streams, ext/standard and ext/phar stream errors are converted to use the new API. RFC: https://wiki.php.net/rfc/stream_errors Closes phpGH-20524
adrian-enspired pushed a commit to adrian-enspired/php-src that referenced this pull request
Aug 4, 2026Since phpGH-20524, _php_stream_open_wrapper_ex() attaches the context to a stream that has none, including the implicitly substituted default context. Sharing the default context by reference let a later stream_context_set_option() on the stream mutate the global default context, leaking options into every other context-less stream. Only attach explicitly provided contexts. Stream errors already fall back to the default context when the stream has none, so error handling is unaffected.