Skip to content

streams: use C enums instead of define for error_{store_}mode - #22901

Merged
Girgias merged 2 commits into
php:masterfrom
Girgias:2026-07-stream-error-enums
Jul 27, 2026
Merged

streams: use C enums instead of define for error_{store_}mode#22901
Girgias merged 2 commits into
php:masterfrom
Girgias:2026-07-stream-error-enums

Conversation

@Girgias

@Girgias Girgias commented Jul 27, 2026

Copy link
Copy Markdown
Member

Also make private as these are not used outside of the file.

Split from #22847

Also make private as these are not used outside of the file
@Girgias
Girgias requested a review from TimWolla July 27, 2026 17:08

@TimWolla TimWolla left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks correct except for nit. I didn't check if this is used as a bit set anywhere, but it seems not based on the enum values. I also didn't check if you caught all usages.

Comment thread main/streams/stream_errors.c Outdated
@Girgias

Girgias commented Jul 27, 2026

Copy link
Copy Markdown
Member Author

I've checked via git grep that all usages are within the file. And no those are not use as bitmasks.

@Girgias
Girgias marked this pull request as ready for review July 27, 2026 19:19
@Girgias
Girgias requested a review from bukka as a code owner July 27, 2026 19:19
@Girgias
Girgias merged commit 2bddba4 into php:master Jul 27, 2026
18 checks passed
@Girgias
Girgias deleted the 2026-07-stream-error-enums branch July 27, 2026 19:20
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.

2 participants