Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid dependency on ext-filter #45

Merged
merged 1 commit into from Dec 6, 2021
Merged

Conversation

clue
Copy link
Member

@clue clue commented Dec 6, 2021

This simple changeset avoids an unneeded (and undeclared!) dependency on ext-filter. The extension is enabled by default, but can explicitly be disabled with --without-filter.

The code in question is already covered by the test suite, so the test suite confirms this changeset does not affect behavior or our public API in any way. Accordingly, this is entirely transparent for all consumers of this package, plus now also supports consumers that happen to use --without-filter.

The changes have been ported from reactphp/dns#185
See https://www.php.net/manual/en/filter.installation.php
Originally reported in leproxy/leproxy#80
Refs reactphp/socket#17

@clue clue added this to the v1.9.0 milestone Dec 6, 2021
@clue clue requested a review from WyriHaximus December 6, 2021 09:41
@WyriHaximus WyriHaximus merged commit 76e16f7 into reactphp:master Dec 6, 2021
@clue clue deleted the no-filter branch December 6, 2021 12:47
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.

None yet

2 participants