Skip to content

Fix FILTER_FLAG_NO_RES_RANGE flag #7790

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

Closed
wants to merge 2 commits into from
Closed

Fix FILTER_FLAG_NO_RES_RANGE flag #7790

wants to merge 2 commits into from

Conversation

tongyifan
Copy link
Contributor

2001:10::/28 is a reversed IPv6 range. But there's a typo in #7476, which caused IPv6 address like 240b:0010::1 will be filtered by the flag FILTER_FLAG_NO_RES_RANGE.

http://www.faqs.org/rfcs/rfc6890.html

`2001:10::/28` is a reversed IPv6 range. But there's a typo in #7476, which caused IPv6 address like `240b:0010::1` will be filtered by the flag `FILTER_FLAG_NO_RES_RANGE`.

http://www.faqs.org/rfcs/rfc6890.html
@cmb69
Copy link
Member

cmb69 commented Dec 18, 2021

Thank you! That looks correct, but it might be a good idea to add some tests for this. Also note that this should not target PHP-7.4, because that branch is open for security fixes only. It may not be necessary to rebase onto PHP-8.0, though.

@tongyifan tongyifan changed the base branch from PHP-7.4 to master December 19, 2021 04:40
@tongyifan
Copy link
Contributor Author

Thanks for your review. I've added some testcases for this pr and change the base branch to master.

Copy link
Member

@cmb69 cmb69 left a comment

Choose a reason for hiding this comment

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

Thanks!

@cmb69 cmb69 closed this in 3587e13 Dec 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants