Skip to content

bz2: refactor filter creation to do parameter validation#22307

Merged
Girgias merged 2 commits into
php:masterfrom
Girgias:bz2_filters
Jul 13, 2026
Merged

bz2: refactor filter creation to do parameter validation#22307
Girgias merged 2 commits into
php:masterfrom
Girgias:bz2_filters

Conversation

@Girgias

@Girgias Girgias commented Jun 14, 2026

Copy link
Copy Markdown
Member

And other minor improvements like packing the struct better.

Maybe those should be Type/ValueErrors directly?

@Girgias Girgias requested a review from TimWolla June 14, 2026 17:02
@Girgias Girgias requested a review from ndossche June 23, 2026 15:13

@ndossche ndossche 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.

Looking better. Preferably please when possible try to split this into multiple smaller commits. Code that's both refactored and moved is very hard to review properly and risks introducing regressions.
What I have for you is mostly nits tbh

Comment thread ext/bz2/tests/bz2_filter_unknown_errors.phpt Outdated
Comment thread ext/bz2/bz2_filter.c Outdated
Comment thread ext/bz2/bz2_filter.c Outdated
Comment thread ext/bz2/bz2_filter.c Outdated
@Girgias Girgias force-pushed the bz2_filters branch 2 times, most recently from e00cb38 to 59bf543 Compare July 8, 2026 18:07
@Girgias Girgias requested a review from ndossche July 8, 2026 18:07
@ndossche

Copy link
Copy Markdown
Member

CI fails

@Girgias

Girgias commented Jul 11, 2026

Copy link
Copy Markdown
Member Author

The failures are unrelated and were due to the bad merge of some iconv tests in the merge up process.

@Girgias Girgias merged commit 3129b3b into php:master Jul 13, 2026
18 checks passed
@Girgias Girgias deleted the bz2_filters branch July 13, 2026 16:26
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