Skip to content

bz2: refactor filter creation to do parameter validation#22307

Open
Girgias wants to merge 2 commits into
php:masterfrom
Girgias:bz2_filters
Open

bz2: refactor filter creation to do parameter validation#22307
Girgias wants to merge 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 requested a review from ndossche July 8, 2026 18:07
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