Skip to content

ext/phar: stream context options are always stored in an array#22234

Merged
Girgias merged 2 commits into
php:masterfrom
Girgias:phar-stream-context
Jun 6, 2026
Merged

ext/phar: stream context options are always stored in an array#22234
Girgias merged 2 commits into
php:masterfrom
Girgias:phar-stream-context

Conversation

@Girgias
Copy link
Copy Markdown
Member

@Girgias Girgias commented Jun 5, 2026

These cannot be objects and thus there is no need to use HASH_OF.

Can be double-checked looking at stream_context_set_option() and stream_context_set_options() functions.

As you last edited this Nora can you have a look, it seems you conflated stream filter parameters (which can be objects) with the stream context options which can only be an array.

These cannot be objects and thus there is no need to use HASH_OF.

Can be double checked looking at stream_context_set_option() and stream_context_set_options() functions
Copy link
Copy Markdown
Contributor

@LamentXU123 LamentXU123 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The SNMP CI on windows has a very high possibility of failing. I tried to solve this before but it turns out the reason is kind of complicated. Might need more people to look into this stuff in the future or this will keep bothering unrelated PRs.

@LamentXU123
Copy link
Copy Markdown
Contributor

LamentXU123 commented Jun 5, 2026

Anyway, re-running the failed job to get rid of the SNMP failure.

Comment thread ext/phar/stream.c Outdated
@Girgias Girgias merged commit c701c57 into php:master Jun 6, 2026
1 check passed
@Girgias Girgias deleted the phar-stream-context branch June 6, 2026 07:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants